diff options
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 ) { |