mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 09:13:35 +00:00
fixed error message
This commit is contained in:
parent
7ce40d876b
commit
66e84f78ce
@ -159,7 +159,7 @@ function wml_actions.disallow_recruit(cfg)
|
||||
end
|
||||
|
||||
function wml_actions.disallow_extra_recruit(cfg)
|
||||
local recruits = cfg.extra_recruit or helper.wml_error("disallow_extra_recruit] missing required extra_recruit= attribute")
|
||||
local recruits = cfg.extra_recruit or helper.wml_error("[disallow_extra_recruit] missing required extra_recruit= attribute")
|
||||
for index, unit in ipairs(wesnoth.get_units(cfg)) do
|
||||
local v = unit.extra_recruit
|
||||
for w in string.gmatch(recruits, "[^%s,][^,]*") do
|
||||
|
Loading…
x
Reference in New Issue
Block a user