diff --git a/src/p_maputl.c b/src/p_maputl.c index 313af9514..3e30c5d6e 100644 --- a/src/p_maputl.c +++ b/src/p_maputl.c @@ -1069,7 +1069,7 @@ boolean P_BlockThingsIterator(INT32 x, INT32 y, boolean (*func)(mobj_t *), mobj_ if (!func(block->mobj)) return false; - if (checkthing && P_MobjWasRemoved(tmthing)) // func just popped our tmthing, cannot continue. + if (checkthing && P_MobjWasRemoved(thing)) // func just popped our tmthing, cannot continue. return true; }