diff options
author | truebrain <truebrain@openttd.org> | 2011-11-29 23:26:35 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-29 23:26:35 +0000 |
commit | 34d7f01cccfbb4dcd09f0b68ded513f495fa69ed (patch) | |
tree | f7d152f88f52d5c883538a5218138fa3a256dc1e /src/script/api | |
parent | c38c16773ca0bc5c928486b18318eb5b147f8ff0 (diff) | |
download | openttd-34d7f01cccfbb4dcd09f0b68ded513f495fa69ed.tar.xz |
(svn r23364) -Codechange: refactor AIConfig, moving it mostly to Scriptconfig
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_controller.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/api/script_controller.cpp b/src/script/api/script_controller.cpp index e81af3603..0638a6651 100644 --- a/src/script/api/script_controller.cpp +++ b/src/script/api/script_controller.cpp @@ -21,6 +21,7 @@ #include "../../ai/ai_config.hpp" #include "../../ai/ai.hpp" #include "../script_fatalerror.hpp" +#include "../script_info.hpp" #include "../script_suspend.hpp" #include "script_log.hpp" @@ -96,7 +97,7 @@ ScriptController::~ScriptController() snprintf(library_name, sizeof(library_name), "%s.%d", library, version); strtolower(library_name); - AILibrary *lib = AI::FindLibrary(library, version); + ScriptInfo *lib = (ScriptInfo *)AI::FindLibrary(library, version); if (lib == NULL) { char error[1024]; snprintf(error, sizeof(error), "couldn't find library '%s' with version %d", library, version); |