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;
 }
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to