# HG changeset patch # User truebrain # Date 1213294446 0 # Node ID e7693a7bb280dec04e100310ca408518376642e1 # Parent df6235dd2b7af4a9e3331ea179dc53ee4fc5f666 (svn r13493) [NoAI] -Fix: ReloadAI should reload the AI correctly, no matter what you named your dir diff -r df6235dd2b7a -r e7693a7bb280 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);