Fix StringTable::Sort comparator

Previously, it explicitly compared to -1, while _strcmpi can return
all integers.
This commit is contained in:
Michał Janiszewski authored and Michał Janiszewski committed 2017-10-30 22:46:57 +01:00
1 parent 4d0a8143bc
commit ed5b655b09
1 file changed
+1 -1
+1 -1
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;