Skip to content
Snippets Groups Projects
Commit 21b8acf7 authored by Zwip-Zwap Zapony's avatar Zwip-Zwap Zapony Committed by Hanicef
Browse files

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

parent e1d15b5e
Branches
Tags SRB2_release_2.1.3
No related merge requests found
...@@ -487,7 +487,7 @@ static int lib_iterateSectorThinglist(lua_State *L) ...@@ -487,7 +487,7 @@ static int lib_iterateSectorThinglist(lua_State *L)
{ {
thing = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ)); thing = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
if (P_MobjWasRemoved(thing)) 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; thing = thing->snext;
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment