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