Fix [for]step= not being honoured

This commit is contained in:
Celtic Minstrel 2015-10-01 14:05:29 -04:00
parent d5e7be9cef
commit c0384520ad

View file

@ -377,7 +377,7 @@ wesnoth.wml_actions["for"] = function(cfg)
goto exit
end
end
wesnoth.set_variable(i_var, wesnoth.get_variable(i_var) + 1)
wesnoth.set_variable(i_var, wesnoth.get_variable(i_var) + step)
end
::exit::
utils.end_var_scope(i_var, save_i)