Backed out changeset c101c0a0a589 - that shouldn't go to repo:)
--HG-- branch : trunk
This commit is contained in:
+1
-5
@@ -159,11 +159,7 @@ void Bag::RemoveItem( uint8 slot, bool /*update*/ )
|
|||||||
|
|
||||||
void Bag::StoreItem( uint8 slot, Item *pItem, bool /*update*/ )
|
void Bag::StoreItem( uint8 slot, Item *pItem, bool /*update*/ )
|
||||||
{
|
{
|
||||||
if(slot > MAX_BAG_SIZE)
|
assert(slot < MAX_BAG_SIZE);
|
||||||
{
|
|
||||||
sLog.outError("Player GUID" UI64FMTD "tried to manipulate packets and crash the server.", GetOwnerGUID());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( pItem )
|
if( pItem )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user