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:
committed by
Michał Janiszewski
parent
4d0a8143bc
commit
ed5b655b09
@@ -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