diff --git a/Content.Server/Corvax/Loadout/LoadoutSystem.cs b/Content.Server/Corvax/Loadout/LoadoutSystem.cs index cc24b3d251c..4f05045795b 100644 --- a/Content.Server/Corvax/Loadout/LoadoutSystem.cs +++ b/Content.Server/Corvax/Loadout/LoadoutSystem.cs @@ -64,7 +64,9 @@ private void OnPlayerSpawned(PlayerSpawnCompleteEvent ev) // Automatically search empty slot for clothes to equip string? firstSlotName = null; bool isEquiped = false; - foreach (var slot in _inventorySystem.GetSlots(ev.Mob)) + if (!_inventorySystem.TryGetSlots(ev.Mob, out var slotDefinitions)) + return; + foreach (var slot in slotDefinitions) { if (!clothing.Slots.HasFlag(slot.SlotFlags)) continue;