Fixed clear_variable by only calling first argument of of trim()
This commit is contained in:
parent
dec551ee9e
commit
e35c301ff4
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ function wml_actions.clear_variable(cfg)
|
|||
local names = cfg.name or
|
||||
helper.wml_error "[clear_variable] missing required name= attribute."
|
||||
for w in split(names) do
|
||||
wesnoth.set_variable(trim(w))
|
||||
wesnoth.set_variable((trim(w))) -- use (f(a)) to get first argument
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue