mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
fix datatype
This commit is contained in:
parent
def927f8be
commit
c1707bcc71
@ -252,7 +252,7 @@ int CHighScoreInputScreen::addEntry(std::string text) {
|
||||
auto sortFunctor = [](const JsonNode & left, const JsonNode & right)
|
||||
{
|
||||
if(left["points"].Integer() == right["points"].Integer())
|
||||
return left["posFlag"].Integer() > right["posFlag"].Integer();
|
||||
return left["posFlag"].Bool() > right["posFlag"].Bool();
|
||||
return left["points"].Integer() > right["points"].Integer();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user