1
0
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:
Peter Nelson
2025-05-31 19:59:23 +01:00
committed by GitHub
parent 4ab48f34f5
commit b7b2b57805

View File

@@ -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)