mail[Wesnoth-commits] r44366 - /trunk/src/scripting/lua.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on July 19, 2010 - 15:19:
Author: silene
Date: Mon Jul 19 15:19:35 2010
New Revision: 44366

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44366&view=rev
Log:
Fixed unbalanced stack.

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=44366&r1=44365&r2=44366&view=diff
==============================================================================
--- trunk/src/scripting/lua.cpp (original)
+++ trunk/src/scripting/lua.cpp Mon Jul 19 15:19:35 2010
@@ -2340,6 +2340,7 @@
        lua_remove(L, -2);
        lua_pushstring(L, cmd.c_str());
        lua_rawget(L, -2);
+       lua_remove(L, -2);
 
        if (lua_isnil(L, -1)) {
                lua_pop(L, 1);




Related Messages


Powered by MHonArc, Updated Mon Jul 19 15:20:05 2010