forked from rosebudai/OpenRCT2-Web
Fix StringTable::Sort comparator
Previously, it explicitly compared to -1, while _strcmpi can return all integers.
This commit is contained in:
1 parent
4d0a8143bc
commit
ed5b655b09
1 file changed
+1
-1
@@ -94,7 +94,7 @@ void StringTable::Sort()
|
||||
{
|
||||
if (a.LanguageId == b.LanguageId)
|
||||
{
|
||||
return _strcmpi(a.Text, b.Text) == -1;
|
||||
return _strcmpi(a.Text, b.Text) < 0;
|
||||
}
|
||||
|
||||
uint8 currentLanguage = LanguagesDescriptors[gCurrentLanguage].rct2_original_id;
|
||||
|
||||
Reference in new issue
Block a user