aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--LuaSL/src/LuaSL_compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 3da5632..0a194a8 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -2284,8 +2284,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
2284 // Compile the Lua source code. 2284 // Compile the Lua source code.
2285 L = luaL_newstate(); 2285 L = luaL_newstate();
2286 luaL_openlibs(L); 2286 luaL_openlibs(L);
2287 /* This ends up pushing a function onto the stack for a lua_pcall() to use. 2287 // This ends up pushing a function onto the stack. The function is the compiled code.
2288 * The function is the compiled code. */
2289 err = luaL_loadfile(L, luaName); 2288 err = luaL_loadfile(L, luaName);
2290 if (err) 2289 if (err)
2291 { 2290 {
@@ -2299,6 +2298,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
2299 } 2298 }
2300 else 2299 else
2301 { 2300 {
2301 // Write the compiled code to a file.
2302 strcat(luaName, ".lua.out"); 2302 strcat(luaName, ".lua.out");
2303 out = fopen(luaName, "w"); 2303 out = fopen(luaName, "w");
2304 if (out) 2304 if (out)