mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9723] Finaly cleanup usage ventorslot values.
This is also fix recent showup problem buy items from vendors in case when some items usable (and then show in list) only for some class/races.
This commit is contained in:
parent
50c7e57541
commit
c6b56b512c
3 changed files with 9 additions and 17 deletions
|
|
@ -18332,7 +18332,7 @@ bool Player::BuyItemFromVendorSlot(uint64 vendorguid, uint32 vendorslot, uint32
|
|||
return false;
|
||||
}
|
||||
|
||||
VendorItem const* crItem = vItems->m_items[vendorslot];
|
||||
VendorItem const* crItem = vItems->GetItem(vendorslot);
|
||||
if(!crItem || crItem->item != item) // store diff item (cheating)
|
||||
{
|
||||
SendBuyError( BUY_ERR_CANT_FIND_ITEM, pCreature, item, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue