From 54ec3a2a3f6b130251dca48662db8aca605141b8 Mon Sep 17 00:00:00 2001 From: truebrain Date: Wed, 23 Nov 2011 13:37:48 +0000 Subject: (svn r23293) -Codechange: make LoadScript/LoadFile non-static --- src/ai/ai_scanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') 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)); -- cgit v1.2.3-70-g09d2