* Fix a crash in Player::BuyItemFromVendor caused by player spoofing packets
--HG-- branch : trunk
This commit is contained in:
+5
-1
@@ -17639,7 +17639,11 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
|
||||
{
|
||||
// cheating attempt
|
||||
if(count < 1) count = 1;
|
||||
|
||||
|
||||
// cheating attempt
|
||||
if(slot > MAX_BAG_SIZE)
|
||||
return false;
|
||||
|
||||
if(!isAlive())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user