mirror of https://github.com/axmolengine/axmol.git
Merge pull request #268 from Obg1/master
Fix manifest version greater check
This commit is contained in:
commit
1059485e52
|
@ -187,11 +187,11 @@ bool Manifest::versionGreater(const Manifest *b, const std::function<int(const s
|
||||||
bool greater;
|
bool greater;
|
||||||
if (handle)
|
if (handle)
|
||||||
{
|
{
|
||||||
greater = handle(localVersion, bVersion) >= 0;
|
greater = handle(localVersion, bVersion) > 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
greater = cmpVersion(localVersion, bVersion) >= 0;
|
greater = cmpVersion(localVersion, bVersion) > 0;
|
||||||
}
|
}
|
||||||
return greater;
|
return greater;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue