[10154] Fixed crash at loot item and etc after recent check add.

This commit is contained in:
VladimirMangos 2010-07-05 14:04:08 +04:00
parent 6b8e4ceee6
commit 232db2b306
2 changed files with 2 additions and 2 deletions

View file

@ -9926,7 +9926,7 @@ uint8 Player::_CanStoreItem( uint8 bag, uint8 slot, ItemPosCountVec &dest, uint3
}
// Normally it would be impossible to autostore not empty bags
if(pItem->IsBag() && !((Bag*)pItem)->IsEmpty())
if (pItem && pItem->IsBag() && !((Bag*)pItem)->IsEmpty())
return EQUIP_ERR_NONEMPTY_BAG_OVER_OTHER_BAG;
// search free slot

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10153"
#define REVISION_NR "10154"
#endif // __REVISION_NR_H__