(svn r13493) [NoAI] -Fix: ReloadAI should reload the AI correctly, no matter what you named your dir
--- a/src/ai/ai_gui.cpp Thu Jun 12 18:03:50 2008 +0000
+++ b/src/ai/ai_gui.cpp Thu Jun 12 18:14:06 2008 +0000
@@ -181,7 +181,7 @@
if (widget == AID_WIDGET_RELOAD_TOGGLE && !this->IsWidgetDisabled(widget)) {
/* Set the current AI as forced next AI */
AIInfo *info = AI_GetPlayerInfo(ai_debug_player);
- AI_ForceAI(info->GetName());
+ AI_ForceAI(info->GetDirName());
/* First kill the company of the AI, then start a new one. This should start the current AI again */
DoCommandP(0, 2, ai_debug_player, NULL, CMD_PLAYER_CTRL);