See if cleaning the pointer here fixes shrink/eggbox syncbombs

This commit is contained in:
Sally Cochenour 2020-04-09 22:57:05 -04:00
parent 9b4e10d5d7
commit 8b5bd645ca

View file

@ -4700,6 +4700,13 @@ void K_UpdateHnextList(player_t *player, boolean clean)
P_RemoveMobj(work);
}
if (player->mo->hnext == NULL || P_MobjWasRemoved(player->mo->hnext))
{
// Like below, try to clean up the pointer if it's NULL.
// Maybe this was a cause of the shrink/eggbox fails?
P_SetTarget(&player->mo->hnext, NULL);
}
}
// For getting hit!