From 1284ec6494bb73883956cbe98cd2337311159091 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Mon, 1 Jan 2024 02:44:07 +0000 Subject: [PATCH] correct sidenum_get to use UINT32 instead of UINT16 --- src/lua_maplib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_maplib.c b/src/lua_maplib.c index 0c4ba6fd3..5b80d4d38 100644 --- a/src/lua_maplib.c +++ b/src/lua_maplib.c @@ -1195,7 +1195,7 @@ static int line_num(lua_State *L) static int sidenum_get(lua_State *L) { - UINT16 *sidenum = *((UINT16 **)luaL_checkudata(L, 1, META_SIDENUM)); + UINT32 *sidenum = *((UINT32 **)luaL_checkudata(L, 1, META_SIDENUM)); int i; lua_settop(L, 2); if (!lua_isnumber(L, 2))