mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 03:59:05 +01:00
Core/Packets: 413a94f4b0 followup. No longer inline initialize optional members in VendorItem struct
This commit is contained in:
@@ -77,7 +77,7 @@ ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::NPC::VendorItem const& it
|
||||
data << int32(item.MuID);
|
||||
data << int32(item.Durability);
|
||||
|
||||
if (item.ExtendedCostID)
|
||||
if (item.ExtendedCostID.has_value())
|
||||
data << uint32(*item.ExtendedCostID);
|
||||
|
||||
data << uint32(item.ItemID);
|
||||
|
||||
@@ -115,8 +115,8 @@ namespace WorldPackets
|
||||
uint32 Price = 0;
|
||||
int32 Durability = 0;
|
||||
int32 StackCount = 0;
|
||||
Optional<int32> ExtendedCostID = 0;
|
||||
Optional<int32> PlayerConditionFailed = 0;
|
||||
Optional<int32> ExtendedCostID;
|
||||
Optional<int32> PlayerConditionFailed;
|
||||
};
|
||||
|
||||
class VendorInventory final : public ServerPacket
|
||||
|
||||
Reference in New Issue
Block a user