summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-29 00:03:31 +0000
committeryexo <yexo@openttd.org>2010-01-29 00:03:31 +0000
commitfae34ee719a90dc7b7d68b54b97fb5485387b356 (patch)
tree2f584e6bf3765b262d9ade84f32bcd222b5ca015 /src/console_cmds.cpp
parentd75b9f1642f24dd3336437d818b41c2a6d295905 (diff)
downloadopenttd-fae34ee719a90dc7b7d68b54b97fb5485387b356.tar.xz
(svn r18944) -Change [FS#3232]: use the highest version of an AI that can load the AI data from a savegame instead of the exact same version
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index fd74b0c89..2b27fcd57 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1052,7 +1052,7 @@ DEF_CONSOLE_CMD(ConStartAI)
AIConfig *config = AIConfig::GetConfig((CompanyID)n);
if (argc >= 2) {
- config->ChangeAI(argv[1]);
+ config->ChangeAI(argv[1], -1, true);
if (!config->HasAI()) {
IConsoleWarning("Failed to load the specified AI");
return true;