Fix [for]reverse= check

This commit is contained in:
Celtic Minstrel 2015-10-01 14:03:27 -04:00
parent 9fb175c9d6
commit d5e7be9cef

View file

@ -352,7 +352,7 @@ wesnoth.wml_actions["for"] = function(cfg)
first = 0
last = wesnoth.get_variable(cfg.array .. ".length") - 1
step = 1
if cfg.reverse == "yes" then
if cfg.reverse then
first, last = last, first
step = -1
end