From 3c2a60c8c54e94c9af6e95db59b31b9935a0552f Mon Sep 17 00:00:00 2001 From: yamamama Date: Wed, 29 Apr 2026 05:40:12 -0400 Subject: [PATCH] =?UTF-8?q?cast=20from=20function=20call=20of=20type=20?= =?UTF-8?q?=E2=80=98lua=5FNumber=E2=80=99=20{aka=20=E2=80=98int=E2=80=99}?= =?UTF-8?q?=20to=20deez=20nuts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua_baselib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_baselib.c b/src/lua_baselib.c index 36ae24785..3cc7c307f 100644 --- a/src/lua_baselib.c +++ b/src/lua_baselib.c @@ -3654,7 +3654,7 @@ static int lib_gTicsToMilliseconds(lua_State *L) static int lib_gMapIsSafe(lua_State *L) { - mapnum_t map = (mapnum_t)luaL_checkinteger(L, 1); + mapnum_t map = luaL_checkinteger(L, 1); if (lua_compatmode && map) map = G_KartMapToNative(map);