Fixed a misplaced end
This commit is contained in:
parent
3c6d3e93d7
commit
a61d3704e9
1 changed files with 1 additions and 1 deletions
|
@ -1078,6 +1078,7 @@ function wml_actions.set_variable(cfg)
|
|||
local modulo = tonumber(cfg.modulo) or 0
|
||||
if modulo == 0 then helper.wml_error("division by zero on variable " .. name) end
|
||||
wesnoth.set_variable(name, (tonumber(var) or 0) % modulo)
|
||||
end
|
||||
|
||||
if cfg.round then
|
||||
local round_val = cfg.round
|
||||
|
@ -1172,4 +1173,3 @@ function wml_actions.set_variable(cfg)
|
|||
wesnoth.set_variable(name, table.concat(string_to_join, separator))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue