aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-06-25 12:10:45 +0200
committerQAston <none@none>2009-06-25 12:10:45 +0200
commitd719f7584278bdfa2d5978bf18192e4109206d07 (patch)
treef4e83c8f9be27d566296a9b1830f3797dce675bb /src
parent6bc7a8b2c51d8909034818734f0a0ebd1af195c5 (diff)
parentdb0a78e658c7f627bbfe88b1828fc479e2d4a374 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Bag.cpp6
1 files changed, 1 insertions, 5 deletions
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 )
{