fix [terrain_mask]
previously it would just ignore all [rule]s
This commit is contained in:
parent
d36fb1de7e
commit
527f0a7580
1 changed files with 1 additions and 1 deletions
|
@ -1003,7 +1003,7 @@ function wml_actions.terrain_mask(cfg)
|
||||||
end
|
end
|
||||||
local rules = {}
|
local rules = {}
|
||||||
for rule in wml.child_range(cfg, 'rule') do
|
for rule in wml.child_range(cfg, 'rule') do
|
||||||
rules[#rules] = rule
|
rules[#rules + 1] = rule
|
||||||
end
|
end
|
||||||
if cfg.mask_file then
|
if cfg.mask_file then
|
||||||
mask = wesnoth.read_file(cfg.mask_file)
|
mask = wesnoth.read_file(cfg.mask_file)
|
||||||
|
|
Loading…
Add table
Reference in a new issue