From c3b7917da1517f12c111b390c83dd3bebd0ad22e Mon Sep 17 00:00:00 2001 From: Yexo Date: Wed, 21 Jan 2009 00:19:21 +0000 Subject: (svn r15185) -Fix (r15175): It was impossible to select AIs that had a different instance name then their name. --- src/ai/ai_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2