From 41d0a6b3d827c1f241bf5194fe6e2b4f9e484dc6 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Fri, 12 May 2017 17:21:38 -0400 Subject: [PATCH] Fix #1688 --- data/lua/wml-flow.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/lua/wml-flow.lua b/data/lua/wml-flow.lua index 1f43f39ee17..c4dfdea4cf5 100644 --- a/data/lua/wml-flow.lua +++ b/data/lua/wml-flow.lua @@ -130,7 +130,7 @@ wesnoth.wml_actions["for"] = function(cfg) return wesnoth.get_variable(i_var) > sentinel else sentinel = sentinel + 1 - return wesnoth.get_variable(i_var) > sentinel + return wesnoth.get_variable(i_var) < sentinel end end while loop_condition() do @@ -261,4 +261,4 @@ function wml_actions.switch(cfg) if action ~= "none" then break end end end -end \ No newline at end of file +end