1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Merge pull request #2744 from janisozaur/broken-language

Fall-back to default language in case none is set
This commit is contained in:
Ted John
2016-01-16 17:56:02 +00:00

View File

@@ -346,6 +346,11 @@ rct_string_id object_get_localised_text(uint8_t** pStringTable/*ebp*/, int type/
// Skip over the actual string entry to get to the next entry
while (*(*pStringTable)++ != 0);
}
// Fall back in case language does not get set.
if (pString == NULL)
{
pString = (char*)(*pStringTable);
}
char name[9];
if (RCT2_GLOBAL(0x009ADAFC, uint8) == 0) {