summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-23 13:37:48 +0000
committertruebrain <truebrain@openttd.org>2011-11-23 13:37:48 +0000
commit54ec3a2a3f6b130251dca48662db8aca605141b8 (patch)
treec7e553fa0e698aa7f113a893aa957df9cb994f60 /src/ai
parentf4735ce234544eddcc21ccee4612509a78b8502d (diff)
downloadopenttd-54ec3a2a3f6b130251dca48662db8aca605141b8.tar.xz
(svn r23293) -Codechange: make LoadScript/LoadFile non-static
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_scanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index 46032e1d5..a2954c6d9 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -134,7 +134,7 @@ bool AIScanner::ImportLibrary(const char *library, const char *class_name, int v
sq_pushstring(vm, OTTD2SQ(fake_class), -1);
sq_newclass(vm, SQFalse);
/* Load the library */
- if (!Squirrel::LoadScript(vm, (*iter).second->GetMainScript(), false)) {
+ if (!this->engine->LoadScript(vm, (*iter).second->GetMainScript(), false)) {
char error[1024];
snprintf(error, sizeof(error), "there was a compile error when importing '%s' version %d", library, version);
sq_throwerror(vm, OTTD2SQ(error));