summaryrefslogtreecommitdiff
path: root/src/ai/ai_gui.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-08-28 15:23:11 +0000
committeryexo <yexo@openttd.org>2009-08-28 15:23:11 +0000
commitf548a1b3b3c054957b421e88e2122f6f455bf9fc (patch)
tree78a6ef212c4cf307d9d472ce55ecb54d6f19b13d /src/ai/ai_gui.cpp
parente09cba404c77e9ffc33658da83a5f47ff262ee3a (diff)
downloadopenttd-f548a1b3b3c054957b421e88e2122f6f455bf9fc.tar.xz
(svn r17298) -Fix [FS#3153]: reloading an AI started a new AI in the first available company slot causing other AIs to be started
Diffstat (limited to 'src/ai/ai_gui.cpp')
-rw-r--r--src/ai/ai_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 6a3fcf6b8..6de73a07e 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -858,7 +858,7 @@ struct AIDebugWindow : public Window {
if (widget == AID_WIDGET_RELOAD_TOGGLE && !this->IsWidgetDisabled(widget)) {
/* First kill the company of the AI, then start a new one. This should start the current AI again */
DoCommandP(0, 2, ai_debug_company, CMD_COMPANY_CTRL);
- DoCommandP(0, 1, 0, CMD_COMPANY_CTRL);
+ DoCommandP(0, 1, ai_debug_company, CMD_COMPANY_CTRL);
}
}