(svn r23364) -Codechange: refactor AIConfig, moving it mostly to Scriptconfig
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user