mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-22 19:54:06 +01:00
Fix bd1a3fe0b7: Crash if loading compatibility scripts fails. (#14318)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user