mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
*Fix a crash caused by item
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user