From 08c74992851eff69a0bcd06cc4fccffeeaa21999 Mon Sep 17 00:00:00 2001
From: MIDIMan <miditheman2.0@gmail.com>
Date: Wed, 31 Jan 2024 20:18:11 -0500
Subject: [PATCH] Fix parameters in lua_pPathTraverse

---
 src/lua_interceptlib.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/lua_interceptlib.c b/src/lua_interceptlib.c
index 8523c4172f..ed748e9294 100644
--- a/src/lua_interceptlib.c
+++ b/src/lua_interceptlib.c
@@ -52,10 +52,7 @@ static boolean Lua_PathTraverser(intercept_t *in)
 	
 	traverse = lua_toboolean(gL, -2);
 	lua_pop(gL, 1);
-	//lua_settop(gL, 0);
 	
-	//CONS_Printf("%d\n", in->isaline);
-	//CONS_Printf("%s\n", in->isaline ? "true" : "false");
 	return traverse;
 }
 
@@ -98,8 +95,8 @@ static int intercept_get(lua_State *L)
 static int lib_pPathTraverse(lua_State *L)
 {
 	fixed_t px1 = luaL_checkfixed(L, 1);
-	fixed_t px2 = luaL_checkfixed(L, 2);
-	fixed_t py1 = luaL_checkfixed(L, 3);
+	fixed_t py1 = luaL_checkfixed(L, 2);
+	fixed_t px2 = luaL_checkfixed(L, 3);
 	fixed_t py2 = luaL_checkfixed(L, 4);
 	INT32 flags = (INT32)luaL_checkinteger(L, 5);
 	luaL_checktype(L, 6, LUA_TFUNCTION);
-- 
GitLab