diff options
| -rw-r--r-- | src/game/Player.cpp | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index f5b17016512..4bec1b885a7 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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;  | 
