summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-07-12 18:54:27 +0000
committerrubidium <rubidium@openttd.org>2013-07-12 18:54:27 +0000
commit81ce9ad1897819c94099e3c542bb7f480ba0f57b (patch)
treeff3ec18f5d96d1d28895734bc13a81647b3cd7d3 /src/game
parent11f756ac974b1da2afd68a2496ae3f07e4da393d (diff)
downloadopenttd-81ce9ad1897819c94099e3c542bb7f480ba0f57b.tar.xz
(svn r25592) -Fix [FS#5644]: Changing the script difficulty level in-game would also change the settings using the default even though they were not allowed to change in-game
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_core.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/game_core.cpp b/src/game/game_core.cpp
index e1a21872a..9fd47a4c8 100644
--- a/src/game/game_core.cpp
+++ b/src/game/game_core.cpp
@@ -71,6 +71,8 @@
GameInfo *info = config->GetInfo();
if (info == NULL) return;
+ config->AnchorUnchangeableSettings();
+
Backup<CompanyByte> cur_company(_current_company, FILE_LINE);
cur_company.Change(OWNER_DEITY);