From db0a78e658c7f627bbfe88b1828fc479e2d4a374 Mon Sep 17 00:00:00 2001 From: QAston Date: Thu, 25 Jun 2009 12:10:03 +0200 Subject: Backed out changeset c101c0a0a589 - that shouldn't go to repo:) --HG-- branch : trunk --- src/game/Bag.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/game/Bag.cpp') diff --git a/src/game/Bag.cpp b/src/game/Bag.cpp index bd3250ee322..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" UI64FMTD "tried to manipulate packets and crash the server.", GetOwnerGUID()); - return; - } + assert(slot < MAX_BAG_SIZE); if( pItem ) { -- cgit v1.2.3