--- a/main.c Sun Jul 26 12:20:39 2009 +0300
+++ b/main.c Sun Jul 26 12:23:13 2009 +0300
@@ -114,7 +114,7 @@
if (ret = luaL_loadfile (L, path))
scr_LogPrint (LPRINT_LOGNORM, "lua: Unable to compile file %s: %s", path, lua_tostring (L, -1));
- else if (ret = lua_pcall (lua, 0, LUA_MULTRET, 0))
+ else if (ret = lua_pcall (L, 0, LUA_MULTRET, 0))
scr_LogPrint (LPRINT_LOGNORM, "lua: Runtime error in file %s: %s", path, lua_tostring (L, -1));
g_free (path);
@@ -1165,7 +1165,7 @@
}
if (lua_pcall (L, 0, 0, 0)) {
- scr_LogPrint (LPRINT_NORMAL, "lua: Runtime error: %s", lua_tostring(lua, -1));
+ scr_LogPrint (LPRINT_NORMAL, "lua: Runtime error: %s", lua_tostring(L, -1));
lua_pop (L, 1);
return;
}