Core/Creatures: Removed vendor item check during loading, MAX_VENDOR_ITEMS should apply to filtered list of items depending on player opening the vendor, not global list size
Closes #10330
This commit is contained in:
1 parent
3d6b88f5aa
commit
3a4e3a5fa9
2 files changed
+3
-11
No files matched your search
@@ -784,8 +784,6 @@ void WorldSession::SendListInventory(uint64 vendorGuid)
|
||||
continue;
|
||||
}
|
||||
|
||||
++count;
|
||||
|
||||
// reputation discount
|
||||
int32 price = item->IsGoldRequired(itemTemplate) ? uint32(floor(itemTemplate->BuyPrice * discountMod)) : 0;
|
||||
|
||||
@@ -797,6 +795,9 @@ void WorldSession::SendListInventory(uint64 vendorGuid)
|
||||
data << uint32(itemTemplate->MaxDurability);
|
||||
data << uint32(itemTemplate->BuyCount);
|
||||
data << uint32(item->ExtendedCost);
|
||||
|
||||
if (++count >= MAX_VENDOR_ITEMS)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user