Change P_MobjWasRemoved to P_RemoveMobj in the error message (thanks Zwip-Zwap Zapony)

This commit is contained in:
Zwip-Zwap Zapony 2024-02-07 20:30:20 +00:00 committed by Hanicef
parent e1d15b5ed5
commit 21b8acf75d

View file

@ -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