Ensure followmobj ghost exists before applying fuse

This commit is contained in:
lachwright 2020-05-30 18:26:11 +08:00
parent 51b640ad5a
commit b874da5229

View file

@ -12231,10 +12231,8 @@ void P_PlayerThink(player_t *player)
{ {
mobj_t *ghost = P_SpawnGhostMobj(player->mo); // Spawns afterimages mobj_t *ghost = P_SpawnGhostMobj(player->mo); // Spawns afterimages
ghost->fuse = 2; // Makes the images fade quickly ghost->fuse = 2; // Makes the images fade quickly
if (ghost->tracer) if (ghost->tracer && !P_MobjWasRemoved(ghost->tracer))
{
ghost->tracer->fuse = ghost->fuse; ghost->tracer->fuse = ghost->fuse;
}
} }
} }
else if (dashmode) else if (dashmode)