From 527f0a7580ba008368c571e000133c199f239ab9 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Tue, 20 Aug 2019 19:58:59 +0200 Subject: [PATCH] fix [terrain_mask] previously it would just ignore all [rule]s --- data/lua/wml-tags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/lua/wml-tags.lua b/data/lua/wml-tags.lua index d980d667f42..772301e9921 100644 --- a/data/lua/wml-tags.lua +++ b/data/lua/wml-tags.lua @@ -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)