(svn r23293) -Codechange: make LoadScript/LoadFile non-static

This commit is contained in:
truebrain
2011-11-23 13:37:48 +00:00
parent f4735ce234
commit 54ec3a2a3f
4 changed files with 7 additions and 6 deletions

View File

@@ -71,7 +71,8 @@ SQInteger SquirrelStd::require(HSQUIRRELVM vm)
for (char *n = filen; *n != '\0'; n++) if (*n == '/') *n = PATHSEPCHAR;
#endif
bool ret = Squirrel::LoadScript(vm, filen);
Squirrel *engine = (Squirrel *)sq_getforeignptr(vm);
bool ret = engine->LoadScript(vm, filen);
/* Reset the top, so the stack stays correct */
sq_settop(vm, top);