From 21b8acf75dfcb2827ecc7e7e6fada5dbfb169bf4 Mon Sep 17 00:00:00 2001
From: Zwip-Zwap Zapony <zwipzwapzapony@gmail.com>
Date: Wed, 7 Feb 2024 20:30:20 +0000
Subject: [PATCH] Change P_MobjWasRemoved to P_RemoveMobj in the error message
 (thanks Zwip-Zwap Zapony)

---
 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 b629c764d..6b489f22b 100644
--- a/src/lua_maplib.c
+++ b/src/lua_maplib.c
@@ -487,7 +487,7 @@ static int lib_iterateSectorThinglist(lua_State *L)
 	{
 		thing = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
 		if (P_MobjWasRemoved(thing))
-			return luaL_error(L, "current entry in thinglist was removed; avoid calling P_MobjWasRemoved on entries!");
+			return luaL_error(L, "current entry in thinglist was removed; avoid calling P_RemoveMobj on entries!");
 		thing = thing->snext;
 	}
 	else
-- 
GitLab