mail[Wesnoth-commits] r44191 - /branches/1.8/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 15, 2010 - 18:23:
Author: silene
Date: Thu Jul 15 18:23:58 2010
New Revision: 44191

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44191&view=rev
Log:
Fixed double substitution for eval_conditional.
Backported from trunk r44189.

Modified:
    branches/1.8/src/scripting/lua.cpp

Modified: branches/1.8/src/scripting/lua.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.8/src/scripting/lua.cpp?rev=44191&r1=44190&r2=44191&view=diff
==============================================================================
--- branches/1.8/src/scripting/lua.cpp (original)
+++ branches/1.8/src/scripting/lua.cpp Thu Jul 15 18:23:58 2010
@@ -1633,11 +1633,11 @@
                return luaL_typerror(L, 1, "WML table");
        }
 
-       config cond;
-       if (!luaW_toconfig(L, 1, cond))
+       vconfig cond;
+       if (!luaW_tovconfig(L, 1, cond, false))
                goto error_call_destructors;
 
-       bool b = game_events::conditional_passed(resources::units, 
vconfig(cond));
+       bool b = game_events::conditional_passed(resources::units, cond);
        lua_pushboolean(L, b);
        return 1;
 }




Related Messages


Powered by MHonArc, Updated Thu Jul 15 21:40:12 2010