diff options
author | yexo <yexo@openttd.org> | 2009-02-23 20:57:55 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-02-23 20:57:55 +0000 |
commit | 1884ba20bc1b6b02a256e444af04f96e7bc22778 (patch) | |
tree | edcd3128ab0f8361e003f55d4b117e1435475f2d /src/ai/ai_gui.cpp | |
parent | c876e3e1b29dd5c89454a14e8ef8ea6c17929d1a (diff) | |
download | openttd-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_gui.cpp')
-rw-r--r-- | src/ai/ai_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 5aae9938c..34d001e8d 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -115,7 +115,7 @@ struct AIListWindow : public Window { } else { AIInfoList::const_iterator it = this->ai_info_list->begin(); for (int i = 0; i < this->selected; i++) it++; - AIConfig::GetConfig(slot)->ChangeAI((*it).second->GetInstanceName(), (*it).second->GetVersion()); + AIConfig::GetConfig(slot)->ChangeAI((*it).second->GetName(), (*it).second->GetVersion()); } InvalidateWindow(WC_GAME_OPTIONS, 0); } |