1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Fix StringTable::Sort comparator

Previously, it explicitly compared to -1, while _strcmpi can return
all integers.
This commit is contained in:
Michał Janiszewski
2017-10-30 22:37:25 +01:00
committed by Michał Janiszewski
parent 4d0a8143bc
commit ed5b655b09

View File

@@ -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;