(svn r15562) -Change: Use GetName() to determine the unique AI name instead of GetInstanceName() to make branching of AIs easier.

This commit is contained in:
yexo
2009-02-23 20:57:55 +00:00
parent c876e3e1b2
commit 1884ba20bc
3 changed files with 7 additions and 7 deletions

View File

@@ -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);
}