Fixed a misplaced end

This commit is contained in:
Elvish_Hunter 2016-04-13 17:32:48 +02:00
parent 3c6d3e93d7
commit a61d3704e9

View file

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