Author: anonymissimus
Date: Fri Nov 11 18:59:17 2011
New Revision: 51955
URL: http://svn.gna.org/viewcvs/wesnoth?rev=51955&view=rev
Log:
fix stack popping after compilation error (bug #18977)
Modified:
trunk/src/scripting/lua.cpp
Modified: trunk/src/scripting/lua.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/scripting/lua.cpp?rev=51955&r1=51954&r2=51955&view=diff
==============================================================================
--- trunk/src/scripting/lua.cpp (original)
+++ trunk/src/scripting/lua.cpp Fri Nov 11 18:59:17 2011
@@ -3999,7 +3999,7 @@
char const *m = lua_tostring(L, -1);
chat_message("Lua error", m);
ERR_LUA << m << '\n';
- lua_pop(L, 2);
+ lua_pop(L, 1);
return false;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits