diff options
author | Yexo <Yexo@openttd.org> | 2009-01-21 00:19:21 +0000 |
---|---|---|
committer | Yexo <Yexo@openttd.org> | 2009-01-21 00:19:21 +0000 |
commit | 78c857422b59f3cd352d7a981fcdc67ca8650688 (patch) | |
tree | 3ab74a1d7c964b273b1887e5511bf570c36f0c7e /src/ai | |
parent | 11fe4bcc5626c9e9f35be11972584d02a2978b3c (diff) | |
download | openttd-78c857422b59f3cd352d7a981fcdc67ca8650688.tar.xz |
(svn r15185) -Fix (r15175): It was impossible to select AIs that had a different instance name then their name.
Diffstat (limited to 'src/ai')
-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 988b92f37..01fd4699c 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -113,7 +113,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->GetName(), (*it).second->GetVersion()); + AIConfig::GetConfig(slot)->ChangeAI((*it).second->GetInstanceName(), (*it).second->GetVersion()); } InvalidateWindow(WC_GAME_OPTIONS, 0); } |