From b7b2b5780564bf54200fae2099fd3bba97379a6c Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 31 May 2025 19:59:23 +0100 Subject: [PATCH] Fix bd1a3fe0b7: Crash if loading compatibility scripts fails. (#14318) --- src/game/game_instance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/game_instance.cpp b/src/game/game_instance.cpp index 1fc1df1fbd..2a619a0e98 100644 --- a/src/game/game_instance.cpp +++ b/src/game/game_instance.cpp @@ -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)