diff options
Diffstat (limited to 'src/game/game_core.cpp')
-rw-r--r-- | src/game/game_core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/game_core.cpp b/src/game/game_core.cpp index 9fd579599..ac24853da 100644 --- a/src/game/game_core.cpp +++ b/src/game/game_core.cpp @@ -87,9 +87,13 @@ /* static */ void Game::Uninitialize(bool keepConfig) { + Backup<CompanyByte> cur_company(_current_company, FILE_LINE); + delete Game::instance; Game::instance = NULL; + cur_company.Restore(); + if (keepConfig) { Rescan(); } else { |