Fixed clear_variable by only calling first argument of of trim()

This commit is contained in:
Charles Dang 2014-12-29 14:38:06 +11:00
parent dec551ee9e
commit e35c301ff4

View file

@ -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