mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Vendors: Support for vendors with empty inventory list (#26895)
This commit is contained in:
@@ -708,6 +708,8 @@ void WorldSession::SendListInventory(ObjectGuid vendorGuid)
|
||||
// Resize vector to real size (some items can be skipped due to checks)
|
||||
packet.Items.resize(count);
|
||||
|
||||
packet.Reason = AsUnderlyingType(count ? VendorInventoryReason::None : VendorInventoryReason::Empty);
|
||||
|
||||
SendPacket(packet.Write());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user