diff --git a/src/lua_blockmaplib.c b/src/lua_blockmaplib.c index 2367673cd..945131e66 100644 --- a/src/lua_blockmaplib.c +++ b/src/lua_blockmaplib.c @@ -53,12 +53,10 @@ static UINT8 lib_searchBlockmap_Objects(lua_State *L, INT32 x, INT32 y, mobj_t * CONS_Alert(CONS_WARNING,"%s\n",lua_tostring(gL, -1)); lua_pop(gL, 1); blockfuncerror = true; - P_SetTarget(&bnext, NULL); return 0; // *shrugs* } if (!lua_isnil(gL, -1)) { // if nil, continue - P_SetTarget(&bnext, NULL); if (lua_toboolean(gL, -1)) return 2; // stop whole search else diff --git a/src/p_saveg.c b/src/p_saveg.c index 5450c6789..4e5452a06 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -2730,6 +2730,7 @@ static void P_NetUnArchiveThinkers(void) } // we don't want the removed mobjs to come back + iquetail = iquehead = 0; P_InitThinkers(); // clear sector thinker pointers so they don't point to non-existant thinkers for all of eternity