From 5699db61179a49fedf811da9cb42e3c0ad632cac Mon Sep 17 00:00:00 2001 From: Gunter Labes Date: Wed, 11 Mar 2020 11:10:03 +0100 Subject: [PATCH] Typo fix --- 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 46b8c58d85a..4d381be20e1 100644 --- a/data/lua/wml-tags.lua +++ b/data/lua/wml-tags.lua @@ -171,7 +171,7 @@ function wml_actions.allow_extra_recruit(cfg) local recruits = cfg.extra_recruit or wml.error("[allow_extra_recruit] missing required extra_recruit= attribute") for index, unit in ipairs(wesnoth.units.find_on_map(cfg)) do local v = unit.extra_recruit - for _,recruit in iapirs(recruits:split()) do + for _,recruit in ipairs(recruits:split()) do table.insert(v, recruit) wesnoth.add_known_unit(recruit) end