From baefb4d0b00c0251ebe7fb5625bec662fedd1e3f Mon Sep 17 00:00:00 2001 From: Indev Date: Wed, 23 Apr 2025 19:09:02 +0300 Subject: [PATCH] Remove I_Assert in GetItemId in lua_hudlib_drawlist.c It is legal for lua_getpc to be null (thanks GenericHeroGuy for investigating!) --- src/lua_hudlib_drawlist.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lua_hudlib_drawlist.c b/src/lua_hudlib_drawlist.c index 98a4890b1..a9c9d93b7 100644 --- a/src/lua_hudlib_drawlist.c +++ b/src/lua_hudlib_drawlist.c @@ -337,7 +337,6 @@ static UINT64 GetItemId(void) #else // he who controls the JIT controls the API const void *p = lua_getpc(gL, 1); - I_Assert(p != NULL); UINT64 id = (uintptr_t)p; #endif // leave bits 0 and 1 free for the string mode