fix [terrain_mask]

previously it would just ignore all [rule]s
This commit is contained in:
gfgtdf 2019-08-20 19:58:59 +02:00 committed by GitHub
parent d36fb1de7e
commit 527f0a7580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1003,7 +1003,7 @@ function wml_actions.terrain_mask(cfg)
end
local rules = {}
for rule in wml.child_range(cfg, 'rule') do
rules[#rules] = rule
rules[#rules + 1] = rule
end
if cfg.mask_file then
mask = wesnoth.read_file(cfg.mask_file)