Don't try to orbit things that aren't there

This commit is contained in:
AJ Martinez 2024-02-06 01:47:10 -07:00
parent 4a7d2504b0
commit 6f616265c4

View file

@ -7243,7 +7243,7 @@ void K_RepairOrbitChain(mobj_t *orbit)
}
// Then recount to make sure item amount is correct
if (orbit->target && orbit->target->player)
if (orbit->target && orbit->target->player && !P_MobjWasRemoved(orbit->target))
{
INT32 num = 0;