From 2b544553c0170f8941626f9889574523632353db Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 24 Feb 2026 17:48:52 -0500 Subject: [PATCH] Fixed index OOB crash from transformation item + armor piece with glowmask --- Items/BaseItems/TransformationAccessory.cs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/Items/BaseItems/TransformationAccessory.cs b/Items/BaseItems/TransformationAccessory.cs index dc76f2aaff..028dda9434 100644 --- a/Items/BaseItems/TransformationAccessory.cs +++ b/Items/BaseItems/TransformationAccessory.cs @@ -177,22 +177,8 @@ namespace CalamityMod.Items.BaseItems { currentTransformation.ModifyDrawInfo(ref drawInfo); - if (currentTransformation.EquipSlots.Any(s => s.Type == EquipType.Head)) - { - drawInfo.headGlowMask = -1; - drawInfo.helmetOffset = Vector2.Zero; - } - - if (currentTransformation.EquipSlots.Any(s => s.Type == EquipType.Body)) - { - drawInfo.bodyGlowMask = -1; - } - - if (currentTransformation.EquipSlots.Any(s => s.Type == EquipType.Legs)) - { - drawInfo.legsGlowMask = -1; - drawInfo.legsOffset = Vector2.Zero; - } + // CIT 24FEB2026: Previously, this hook also reset glowmasks and offsets on the head, body, and legs. + // This has been removed, as it resulted in index OOB crashes due to the original armor being drawn for one frame. } }