From a14c036ffbed4dd6a6eeb35d47049e8a93dd31ad Mon Sep 17 00:00:00 2001 From: FyloZ Date: Sun, 19 Jul 2020 19:10:21 -0400 Subject: [PATCH] Fixed Timekeeper crash. --- Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs b/Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs index 74552fa..45567b4 100644 --- a/Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs +++ b/Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs @@ -22,7 +22,8 @@ namespace Decimation.Content.Projectiles.Boss.DuneWyrm set => projectile.localAI[1] = value; } - private Projectile SiblingProjectile => Main.projectile[Sibling]; + private Projectile SiblingProjectile => + Sibling >= 0 && Sibling < Main.projectile.Length ? Main.projectile[Sibling] : null; private int Counter {