fixup! Accept [place_shroud]/[remove_shroud] with just a side key

This commit is contained in:
Celtic Minstrel 2017-02-28 01:15:24 -05:00
parent 39d31219e5
commit 5cd756f1b0

View file

@ -875,7 +875,7 @@ function wml_actions.place_shroud(cfg)
local sides = utils.get_sides(cfg)
local tiles = wesnoth.get_locations(cfg)
for i,side in ipairs(sides) do
wesnoth.place_shroud(side, tiles)
wesnoth.place_shroud(side.side, tiles)
end
end
@ -883,7 +883,7 @@ function wml_actions.remove_shroud(cfg)
local sides = utils.get_sides(cfg)
local tiles = wesnoth.get_locations(cfg)
for i,side in ipairs(sides) do
wesnoth.remove_shroud(side, tiles)
wesnoth.remove_shroud(side.side, tiles)
end
end