From 83a9203769015afda7a03c8943b8f66486b2c7af Mon Sep 17 00:00:00 2001 From: bigkahuna443 <13278973+bigkahuna443@users.noreply.github.com> Date: Thu, 26 Dec 2024 18:08:27 -0500 Subject: [PATCH] Fix purple booster crash This fixes a crash where the player dies and gets removed from the scene the frame a boost ends. --- Code/Entities/PurpleBooster.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Entities/PurpleBooster.cs b/Code/Entities/PurpleBooster.cs index 24f0e9d..4d2ab96 100644 --- a/Code/Entities/PurpleBooster.cs +++ b/Code/Entities/PurpleBooster.cs @@ -201,7 +201,7 @@ private IEnumerator BoostRoutine(Player player, Vector2 dir) this.linkVisible = player.StateMachine.State is Player.StDash or Player.StNormal; this.linkPercent = this.linkVisible ? 0.0f : 1.0f; - if (!this.linkVisible) + if (!this.linkVisible && !player.Dead) LaunchPlayerParticles(player, -dir, P_BurstExplode); while (SceneAs().Transitioning)