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