*Fix a crash caused by item

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-19 17:01:45 -05:00
parent 76049024f4
commit 07c59aeff5

View File

@@ -17793,7 +17793,8 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
{
if( bagguid == pBag->GetGUID() )
{
bag = i;
if(slot < pBag->GetBagSlot() && !pBag->GetItemByPos(slot))
bag = i;
break;
}
}