summaryrefslogtreecommitdiff
path: root/src/ai/ai_core.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-23 20:57:55 +0000
committeryexo <yexo@openttd.org>2009-02-23 20:57:55 +0000
commit1884ba20bc1b6b02a256e444af04f96e7bc22778 (patch)
treeedcd3128ab0f8361e003f55d4b117e1435475f2d /src/ai/ai_core.cpp
parentc876e3e1b29dd5c89454a14e8ef8ea6c17929d1a (diff)
downloadopenttd-1884ba20bc1b6b02a256e444af04f96e7bc22778.tar.xz
(svn r15562) -Change: Use GetName() to determine the unique AI name instead of GetInstanceName() to make branching of AIs easier.
Diffstat (limited to 'src/ai/ai_core.cpp')
-rw-r--r--src/ai/ai_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp
index f4f703614..2081e6436 100644
--- a/src/ai/ai_core.cpp
+++ b/src/ai/ai_core.cpp
@@ -37,7 +37,7 @@
info = AI::ai_scanner->SelectRandomAI();
assert(info != NULL);
/* Load default data and store the name in the settings */
- AIConfig::GetConfig(company)->ChangeAI(info->GetInstanceName());
+ AIConfig::GetConfig(company)->ChangeAI(info->GetName());
}
_current_company = company;