Author: silene
Date: Sat Apr 18 20:38:29 2009
New Revision: 35024
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35024&view=rev
Log:
Fixed overwriting of WML children.
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=35024&r1=35023&r2=35024&view=diff
==============================================================================
--- trunk/src/scripting/lua.cpp (original)
+++ trunk/src/scripting/lua.cpp Sat Apr 18 20:38:29 2009
@@ -101,7 +101,7 @@
lua_newtable(L);
table_of_wml_config(L, ch.cfg);
lua_rawseti(L, -2, 2);
- lua_rawseti(L, -2, k);
+ lua_rawseti(L, -2, k++);
}
foreach (const config::attribute &attr, cfg.attribute_range())
{
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits