diff options
| author | megamage <none@none> | 2009-03-03 16:14:15 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-03 16:14:15 -0600 |
| commit | 0a78760b758235ba2c48fc6b48514403ed052730 (patch) | |
| tree | dd857534e6018b46e395054ec4a4828e8ad92b60 /src/game/Player.cpp | |
| parent | 88cbb401f7008933435c9721d876abd59cc617f1 (diff) | |
[7374] Fixed search free slot in Player::CanStoreItems in case specialized bag. Author: Arthorius
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index cde74b4a66b..5d0f4c4e598 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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 ) |
