[7374] Fixed search free slot in Player::CanStoreItems in case specialized bag. Author: Arthorius

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-03 16:14:15 -06:00
parent 88cbb401f7
commit 0a78760b75
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -10172,6 +10172,12 @@ uint8 Player::CanStoreItems( Item **pItems,int count) const
pBag = (Bag*)GetItemByPos( INVENTORY_SLOT_BAG_0, t );
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++)
{
if( inv_bags[t-INVENTORY_SLOT_BAG_START][j] == 0 )