From 587156851dd0513f4a73ae8b8883f998c94fcc8b Mon Sep 17 00:00:00 2001 From: WinterSolstice8 <60417494+wintersolstice8@users.noreply.github.com> Date: Sun, 5 May 2024 18:43:35 -0600 Subject: [PATCH] [core] Add wardrobe bits at 0x5C to S2C 0x037 * This fixes a windower bug, and is likely deprecated by the client. If something in the future uses this area, it's safe to remove. Co-authored-by: atom0s Co-authored-by: z16 --- src/map/packets/char_update.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/map/packets/char_update.cpp b/src/map/packets/char_update.cpp index a86a6b397db..fe20d6c2771 100644 --- a/src/map/packets/char_update.cpp +++ b/src/map/packets/char_update.cpp @@ -368,4 +368,15 @@ CCharUpdatePacket::CCharUpdatePacket(CCharEntity* PChar) packet.Flags6 = flags6; std::memcpy(&data[0], &packet, sizeof(packet)); + + // Mog wardrobe enabled bits (apparently used by windower in get_bag_info(N).enabled): + // 0x01 = Wardrobe 3 + // 0x02 = Wardrobe 4 + // 0x04 = Unknown (not set in retail?) + // 0x08 = Wardrobe 5 + // 0x10 = Wardrobe 6 + // 0x20 = Wardrobe 7 + // 0x40 = Wardrobe 8 + ref(0x5C) = 0x7B; + // This field is probably deprecated because the client reads it in and doesn't use it. }