Core/Vendors: Support for vendors with empty inventory list (#26895)

This commit is contained in:
Meji
2021-10-03 21:50:21 +02:00
committed by GitHub
parent 3080c37952
commit bedc050357
3 changed files with 9 additions and 10 deletions

View File

@@ -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());
}