mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10154] Fixed crash at loot item and etc after recent check add.
This commit is contained in:
parent
6b8e4ceee6
commit
232db2b306
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10153"
|
||||
#define REVISION_NR "10154"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue