Fixup 84a7f3fb31, use shallow_parsed

This commit is contained in:
Charles Dang 2015-02-03 11:06:59 +11:00
parent 84a7f3fb31
commit 9c9cbf2901

View file

@ -846,7 +846,7 @@ end
function wml_actions.terrain(cfg)
local terrain = cfg.terrain or helper.wml_error("[terrain] missing required terrain= attribute")
cfg = helper.parsed(cfg)
cfg = helper.shallow_parsed(cfg)
cfg.terrain = nil
for i, loc in ipairs(wesnoth.get_locations(cfg)) do
wesnoth.set_terrain(loc[1], loc[2], terrain, cfg.layer, cfg.replace_if_failed)