(svn r13493) [NoAI] -Fix: ReloadAI should reload the AI correctly, no matter what you named your dir noai
authortruebrain
Thu, 12 Jun 2008 18:14:06 +0000
branchnoai
changeset 10939 e7693a7bb280
parent 10938 df6235dd2b7a
child 10942 cd3f2d07199f
(svn r13493) [NoAI] -Fix: ReloadAI should reload the AI correctly, no matter what you named your dir
src/ai/ai_gui.cpp
--- 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);