fix copypasta typo, failure to bump offset of lf params
authornemo
Wed, 08 Apr 2015 15:10:44 -0400
changeset 10899 de52c2b8b773
parent 10897 8ea636ce120a
child 10901 fbf6fbe66092
fix copypasta typo, failure to bump offset of lf params
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Wed Apr 08 15:04:48 2015 -0400
+++ b/hedgewars/uScript.pas	Wed Apr 08 15:10:44 2015 -0400
@@ -2218,13 +2218,13 @@
         if not lua_isnoneornil(L, 6) then
 	     flipHoriz := lua_toboolean(L, 6)
         else flipHoriz := false;
-        if not lua_isnoneornil(L, 6) then
-	     flipVert := lua_toboolean(L, 6)
+        if not lua_isnoneornil(L, 7) then
+	     flipVert := lua_toboolean(L, 7)
         else flipVert := false;
         lf:= 0;
 
         // accept any amount of landflags, loop is never executed if n>6
-        for i:= 6 to n do
+        for i:= 8 to n do
             lf:= lf or lua_tointeger(L, i);
 
         n:= LuaToSpriteOrd(L, 3, call, params);