diff options
author | QAston <none@none> | 2009-06-27 16:37:29 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-27 16:37:29 +0200 |
commit | e7e79ff8a402fe6279f6839c973e9db6549301b2 (patch) | |
tree | a03d3431824630c130c9446717b79ada33fa5454 /src/game/Bag.cpp | |
parent | da3569402d73d9a5ad8c67adc4000e43f0e0f5f5 (diff) | |
parent | 10ac2b73b88d84bd3005da69b145255a9f3aa2b9 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Bag.cpp')
-rw-r--r-- | src/game/Bag.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/game/Bag.cpp b/src/game/Bag.cpp index fc885b253b3..2d58b63c0a9 100644 --- a/src/game/Bag.cpp +++ b/src/game/Bag.cpp @@ -159,11 +159,7 @@ void Bag::RemoveItem( uint8 slot, bool /*update*/ ) void Bag::StoreItem( uint8 slot, Item *pItem, bool /*update*/ ) { - if(slot > MAX_BAG_SIZE) - { - sLog.outError("Player GUID " I64FMTD " tried to manipulate packets and crash the server.", GetOwnerGUID()); - return; - } + assert(slot < MAX_BAG_SIZE); if( pItem ) { |