diff --git a/src/openrct2/localisation/LanguagePack.cpp b/src/openrct2/localisation/LanguagePack.cpp index 67fa73c466..88ad00a716 100644 --- a/src/openrct2/localisation/LanguagePack.cpp +++ b/src/openrct2/localisation/LanguagePack.cpp @@ -157,7 +157,7 @@ public: sint32 ooIndex = offset / ScenarioOverrideMaxStringCount; sint32 ooStringIndex = offset % ScenarioOverrideMaxStringCount; - if (_scenarioOverrides.size() > (size_t)ooIndex) + if ((_scenarioOverrides.size() > (size_t)ooIndex) && !String::Equals(_scenarioOverrides[ooIndex].strings[ooStringIndex].c_str(), "")) { return _scenarioOverrides[ooIndex].strings[ooStringIndex].c_str(); } @@ -172,7 +172,7 @@ public: sint32 ooIndex = offset / ObjectOverrideMaxStringCount; sint32 ooStringIndex = offset % ObjectOverrideMaxStringCount; - if (_objectOverrides.size() > (size_t)ooIndex) + if ((_objectOverrides.size() > (size_t)ooIndex) && !String::Equals(_objectOverrides[ooIndex].strings[ooStringIndex].c_str(), "")) { return _objectOverrides[ooIndex].strings[ooStringIndex].c_str(); }