From 257b4c8c1b892cd57d096d9eba8aed42cd970fb7 Mon Sep 17 00:00:00 2001 From: Sergi Rosell <50594106+srosellj@users.noreply.github.com> Date: Sun, 18 Oct 2026 00:17:46 +0200 Subject: [PATCH] fix: male rangers no longer leak StuddedLegs (#2712) ShortPants and StuddedLegs both occupy Layer.Pants, so the second EquipItem on a male ranger is refused and its item stays in the world with no parent. Nothing deletes such an item, so every male ranger created leaves one behind in the save. StuddedLegs already cover the layer and female rangers wear them, so the male ranger now skips the shorts. A test creates and deletes rangers and checks that World.Items does not grow. --- Projects/UOContent/Mobiles/Hireables/HireRanger.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Projects/UOContent/Mobiles/Hireables/HireRanger.cs b/Projects/UOContent/Mobiles/Hireables/HireRanger.cs index d7349c1b8..ed228ba49 100644 --- a/Projects/UOContent/Mobiles/Hireables/HireRanger.cs +++ b/Projects/UOContent/Mobiles/Hireables/HireRanger.cs @@ -43,7 +43,6 @@ public partial class HireRanger : BaseHire { Body = 0x190; Name = NameList.RandomName("male"); - EquipItem(new ShortPants(Utility.RandomNeutralHue())); } EquipItem(new Shoes(Utility.RandomNeutralHue()));