From 34d7f01cccfbb4dcd09f0b68ded513f495fa69ed Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 23:26:35 +0000 Subject: (svn r23364) -Codechange: refactor AIConfig, moving it mostly to Scriptconfig --- src/console_cmds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/console_cmds.cpp') diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 6b44b455e..4c6a51ba8 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -1150,8 +1150,8 @@ DEF_CONSOLE_CMD(ConStartAI) AIConfig *config = AIConfig::GetConfig((CompanyID)n); if (argc >= 2) { - config->ChangeAI(argv[1], -1, true); - if (!config->HasAI()) { + config->Change(argv[1], -1, true); + if (!config->HasScript()) { IConsoleWarning("Failed to load the specified AI"); return true; } -- cgit v1.2.3-54-g00ecf