Browse Source

fix datatype

Laserlicht 2 years ago
parent
commit
c1707bcc71
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/mainmenu/CHighScoreScreen.cpp

+ 1 - 1
client/mainmenu/CHighScoreScreen.cpp

@@ -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();
 	};