same for set_extra_recruit

This commit is contained in:
Anonymissimus 2011-05-13 21:30:14 +00:00
parent f8f4c547d4
commit 8f020a7f3c

View file

@ -196,10 +196,10 @@ end
function wml_actions.set_extra_recruit(cfg)
local filter = helper.get_child(cfg, "filter") or helper.wml_error("[disallow_extra_recruit] missing required [filter] tag")
local recruit = cfg.extra_recruit or helper.wml_error("[set_extra_recruit] missing required extra_recruit= attribute")
local types = cfg.type or helper.wml_error("[set_extra_recruit] missing required type= attribute")
local v = {}
for w in string.gmatch(recruit, "[^%s,][^,]*") do
for w in string.gmatch(types, "[^%s,][^,]*") do
table.insert(v, w)
end