summaryrefslogtreecommitdiff
path: root/src/console_cmds.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/console_cmds.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/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 0814b600c..5f528c374 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1044,7 +1044,7 @@ DEF_CONSOLE_CMD(ConStartAI)
}
/* Start a new AI company */
- DoCommandP(0, 1, 0, CMD_COMPANY_CTRL);
+ DoCommandP(0, 1, INVALID_COMPANY, CMD_COMPANY_CTRL);
return true;
}
@@ -1080,7 +1080,7 @@ DEF_CONSOLE_CMD(ConReloadAI)
/* First kill the company of the AI, then start a new one. This should start the current AI again */
DoCommandP(0, 2, company_id, CMD_COMPANY_CTRL);
- DoCommandP(0, 1, 0, CMD_COMPANY_CTRL);
+ DoCommandP(0, 1, company_id, CMD_COMPANY_CTRL);
IConsolePrint(CC_DEFAULT, "AI reloaded.");
return true;