diff options
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index f840b69..72d94b9 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -2275,7 +2275,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants) | |||
2275 | 2275 | ||
2276 | fprintf(out, "--// Generated code goes here.\n\n"); | 2276 | fprintf(out, "--// Generated code goes here.\n\n"); |
2277 | fprintf(out, "local _bit = require(\"bit\")\n"); | 2277 | fprintf(out, "local _bit = require(\"bit\")\n"); |
2278 | fprintf(out, "_LSL = require(\"LSL\")\n\n"); // Local might be quicker, but looks like we need global for pcall(), it has it's own local stack I think. | 2278 | fprintf(out, "local _LSL = require(\"LSL\")\n\n"); |
2279 | // TODO - Use the scripts UUID instead of the file name here. | 2279 | // TODO - Use the scripts UUID instead of the file name here. |
2280 | fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); | 2280 | fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); |
2281 | outputLeaf(out, OM_LUA, compiler.ast); | 2281 | outputLeaf(out, OM_LUA, compiler.ast); |