summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-19 22:06:20 +0000
committerrubidium <rubidium@openttd.org>2010-08-19 22:06:20 +0000
commit1231dc7b57f7c81a9db896eded5a96a7f12f4188 (patch)
tree4f4aa4328abcc12a9635af6afaf59be6658d6fbf /src
parent1fa98e169529b070c19a6bc0cff311ebc993b468 (diff)
downloadopenttd-1231dc7b57f7c81a9db896eded5a96a7f12f4188.tar.xz
(svn r20575) -Fix [FS#4059] (r20542): reloading of companies did load another AI
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 3ac21359a..91a1fd00c 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -960,8 +960,8 @@ struct AIDebugWindow : public QueryStringBaseWindow {
switch (widget) {
case AID_WIDGET_RELOAD_TOGGLE:
/* 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, ai_debug_company, CMD_COMPANY_CTRL);
+ DoCommandP(0, 2 | ai_debug_company << 16, 0, CMD_COMPANY_CTRL);
+ DoCommandP(0, 1 | ai_debug_company << 16, 0, CMD_COMPANY_CTRL);
break;
case AID_WIDGET_SETTINGS: