From 69fa45a12ae6f5e857647a329e94a42effeebe66 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Wed, 11 Nov 2026 23:16:53 +0000 Subject: [PATCH] Transmog: outfit slots are saved to their own place Saving an outfit walked the stored slots forward once and expected the client's slots in the same order. The 1.60 client does not always send them sorted, so a slot could be written over another one or the save stopped early, and the armor slots of an outfit did not keep their new look. Every outfit holds every slot at its slot index, so each slot is now written there directly. (cherry picked from commit a848dc6d1264cd977b30cf9436557183673a20ca) --- src/server/game/Entities/Player/Player.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index d5cd9113dd..f8d9a13923 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -32866,13 +32866,19 @@ void Player::UpdateTransmogOutfitSlots(uint32 id, std::spanSlots[outfitSlotIndex].Slot, *transmogOutfit->Slots[outfitSlotIndex].SlotOption) < std::pair(AsUnderlyingType(slot.Slot), AsUnderlyingType(slot.SlotOption))) - if (++outfitSlotIndex >= transmogOutfit->Slots.size()) - return; + TransmogMgr::TransmogOutfitSlotAndOptionInfo const* slotInfo = TransmogMgr::GetSlotAndOption(slot.Slot, slot.SlotOption); + if (!slotInfo || slotInfo->SlotIndex >= transmogOutfit->Slots.size()) + continue; + uint32 const outfitSlotIndex = slotInfo->SlotIndex; auto viewedOutfitSlot = outfit.ModifyValue(&UF::TransmogOutfitData::Slots, outfitSlotIndex); SetUpdateFieldValue(viewedOutfitSlot.ModifyValue(&UF::TransmogOutfitSlotData::Slot), AsUnderlyingType(slot.Slot)); SetUpdateFieldValue(viewedOutfitSlot.ModifyValue(&UF::TransmogOutfitSlotData::SlotOption), AsUnderlyingType(slot.SlotOption));