changeset 15893:801e6baa63ef draft

(svn r20575) -Fix [FS#4059] (r20542): reloading of companies did load another AI
author rubidium <rubidium@openttd.org>
date Thu, 19 Aug 2010 22:06:20 +0000
parents f3b72d36846c
children 9a746a18b3d5
files src/ai/ai_gui.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -960,8 +960,8 @@
 		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: