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