fixup! Accept [place_shroud]/[remove_shroud] with just a side key
This commit is contained in:
parent
39d31219e5
commit
5cd756f1b0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue