Author: anonymissimus
Date: Fri May 13 18:58:18 2011
New Revision: 49500
URL: http://svn.gna.org/viewcvs/wesnoth?rev=49500&view=rev
Log:
added SSF to [store_gold]
Modified:
trunk/data/lua/wml-tags.lua
Modified: trunk/data/lua/wml-tags.lua
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/lua/wml-tags.lua?rev=49500&r1=49499&r2=49500&view=diff
==============================================================================
--- trunk/data/lua/wml-tags.lua (original)
+++ trunk/data/lua/wml-tags.lua Fri May 13 18:58:18 2011
@@ -74,8 +74,8 @@
end
function wml_actions.store_gold(cfg)
- local team = get_team(cfg.side, "[store_gold]")
- wesnoth.set_variable(cfg.variable or "gold", team.gold)
+ local team = wesnoth.get_sides(cfg)[1]
+ if team then wesnoth.set_variable(cfg.variable or "gold", team.gold) end
end
function wml_actions.clear_variable(cfg)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits