mirror of https://github.com/OpenTTD/OpenTTD
Fix bd1a3fe0b7: Crash if loading compatibility scripts fails. (#14318)
parent
4ab48f34f5
commit
b7b2b57805
|
@ -52,7 +52,7 @@ void GameInstance::RegisterAPI()
|
|||
|
||||
if (!this->LoadCompatibilityScripts(GAME_DIR, GameInfo::ApiVersions)) this->Died();
|
||||
|
||||
RegisterGameTranslation(*this->engine);
|
||||
if (this->IsAlive()) RegisterGameTranslation(*this->engine);
|
||||
}
|
||||
|
||||
int GameInstance::GetSetting(const std::string &name)
|
||||
|
|
Loading…
Reference in New Issue