From b874da52298d94034f7a19d352b6ce25c6194139 Mon Sep 17 00:00:00 2001 From: lachwright Date: Sat, 30 May 2020 18:26:11 +0800 Subject: [PATCH] Ensure followmobj ghost exists before applying fuse --- src/p_user.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index 96a16284f..5972bb1a0 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -12231,10 +12231,8 @@ void P_PlayerThink(player_t *player) { mobj_t *ghost = P_SpawnGhostMobj(player->mo); // Spawns afterimages ghost->fuse = 2; // Makes the images fade quickly - if (ghost->tracer) - { + if (ghost->tracer && !P_MobjWasRemoved(ghost->tracer)) ghost->tracer->fuse = ghost->fuse; - } } } else if (dashmode)