[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:
VladimirMangos 2010-04-11 00:22:26 +04:00
parent 50c7e57541
commit c6b56b512c
3 changed files with 9 additions and 17 deletions

View file

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