diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp --- 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; }