mail[Wesnoth-commits] r34042 - /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 March 22, 2009 - 19:59:
Author: silene
Date: Sun Mar 22 19:59:27 2009
New Revision: 34042

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34042&view=rev
Log:
Ensured that config objects created by Lua are handled by the vconfig cache 
system, so that they are not deleted prematurely.

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=34042&r1=34041&r2=34042&view=diff
==============================================================================
--- trunk/src/scripting/lua.cpp (original)
+++ trunk/src/scripting/lua.cpp Sun Mar 22 19:59:27 2009
@@ -366,7 +366,7 @@
        event_handler_data *eh = static_cast<event_handler_data 
*>(lua_touserdata(L, -1));
 
        eh->handler->handle_event
-               (game_events::queued_event("_from_lua", l1, l2, config()), 
vconfig(&cfg));
+               (game_events::queued_event("_from_lua", l1, l2, config()), 
vconfig(&cfg, true));
        return 0;
 }
 




Related Messages


Powered by MHonArc, Updated Sun Mar 22 20:00:30 2009