summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-05 19:36:04 +0000
committerfrosch <frosch@openttd.org>2012-12-05 19:36:04 +0000
commit812ae4140a8566c2b4b43c6aa5bab5eecf82f18a (patch)
treeb79a9960ef438be736d9768a71336f8dd60f9416 /src/ai
parente43bf5dabdb4a62b4e6b6812db422b962b4eaaf1 (diff)
downloadopenttd-812ae4140a8566c2b4b43c6aa5bab5eecf82f18a.tar.xz
(svn r24789) -Add: Separate setting to control the default settings of newly added scripts and random AIs.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_config.cpp b/src/ai/ai_config.cpp
index 7241eab0a..3b3c09a42 100644
--- a/src/ai/ai_config.cpp
+++ b/src/ai/ai_config.cpp
@@ -82,7 +82,7 @@ int AIConfig::GetSetting(const char *name) const
SettingValueList::const_iterator it = this->settings.find(name);
if (it == this->settings.end()) {
assert(strcmp("start_date", name) == 0);
- switch (GetGameSettings().difficulty.diff_level) {
+ switch (GetGameSettings().script.settings_profile) {
case SP_EASY: return AI::START_NEXT_EASY;
case SP_MEDIUM: return AI::START_NEXT_MEDIUM;
case SP_HARD: return AI::START_NEXT_HARD;