[7374] Fixed search free slot in Player::CanStoreItems in case specialized bag. Author: Arthorius
--HG-- branch : trunk
This commit is contained in:
@@ -10172,6 +10172,12 @@ uint8 Player::CanStoreItems( Item **pItems,int count) const
|
|||||||
pBag = (Bag*)GetItemByPos( INVENTORY_SLOT_BAG_0, t );
|
pBag = (Bag*)GetItemByPos( INVENTORY_SLOT_BAG_0, t );
|
||||||
if( pBag )
|
if( pBag )
|
||||||
{
|
{
|
||||||
|
pBagProto = pBag->GetProto();
|
||||||
|
|
||||||
|
// special bag already checked
|
||||||
|
if( pBagProto && (pBagProto->Class != ITEM_CLASS_CONTAINER || pBagProto->SubClass != ITEM_SUBCLASS_CONTAINER))
|
||||||
|
continue;
|
||||||
|
|
||||||
for(uint32 j = 0; j < pBag->GetBagSize(); j++)
|
for(uint32 j = 0; j < pBag->GetBagSize(); j++)
|
||||||
{
|
{
|
||||||
if( inv_bags[t-INVENTORY_SLOT_BAG_START][j] == 0 )
|
if( inv_bags[t-INVENTORY_SLOT_BAG_START][j] == 0 )
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7373"
|
#define REVISION_NR "7374"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|||||||
Reference in New Issue
Block a user