summaryrefslogtreecommitdiff
path: root/src/script/script_scanner.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-29 22:24:30 +0000
committertruebrain <truebrain@openttd.org>2011-11-29 22:24:30 +0000
commit00877dd6d36ca52b1a8720cbbd4a013c958f7fad (patch)
treeac1c05499e12228624c695b93368246217425469 /src/script/script_scanner.cpp
parent96249564fd219f8747c9cd54bc934215fb1b5e44 (diff)
downloadopenttd-00877dd6d36ca52b1a8720cbbd4a013c958f7fad.tar.xz
(svn r23352) -Add: support dynamically adding an API prefix when returning a C++ class to Squirrel
Diffstat (limited to 'src/script/script_scanner.cpp')
-rw-r--r--src/script/script_scanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script_scanner.cpp b/src/script/script_scanner.cpp
index 258a05643..049790196 100644
--- a/src/script/script_scanner.cpp
+++ b/src/script/script_scanner.cpp
@@ -52,7 +52,7 @@ bool ScriptScanner::AddFile(const char *filename, size_t basepath_length, const
ScriptScanner::ScriptScanner()
{
- this->engine = new Squirrel();
+ this->engine = new Squirrel("Scanner");
/* Mark this class as global pointer */
this->engine->SetGlobalPointer(this);