Fix [for]reverse= check
This commit is contained in:
parent
9fb175c9d6
commit
d5e7be9cef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue