Two more localizations
authorMyhailo Danylenko <isbear@ukrpost.net>
Sun, 26 Jul 2009 12:23:13 +0300
changeset 76 11bd9d10ee3b
parent 75 5eecd8854660
child 77 8a7f7829f4df
Two more localizations
main.c
--- 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;
 	}