Index: src/server/bulkobjects/pscharinventory.h =================================================================== --- src/server/bulkobjects/pscharinventory.h (revision 5684) +++ src/server/bulkobjects/pscharinventory.h (working copy) @@ -169,7 +169,7 @@ * The item will be accessible only from storage npc. * @param item The item to be added to the storage. */ - void AddStorageItem(psItem *item); + void AddStorageItem(psItem *& item); /** Check to see if the player has the ability to carry and additional weight. * @param requiedWeight The amount of weight that we want to check. Index: src/server/bulkobjects/pscharinventory.cpp =================================================================== --- src/server/bulkobjects/pscharinventory.cpp (revision 5684) +++ src/server/bulkobjects/pscharinventory.cpp (working copy) @@ -292,6 +292,8 @@ if (location == PSCHARACTER_SLOT_STORAGE) { AddStorageItem(item);//we have found a storage item so we store it in there. + if (!item) + continue; } else if (!AddLoadedItem(items[i].GetUInt32("parent_item_id"),location, item) ) { @@ -355,7 +357,7 @@ } } -void psCharacterInventory::AddStorageItem(psItem *item) +void psCharacterInventory::AddStorageItem(psItem *& item) { if (item->GetIsStackable()) {