mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7374] Fixed search free slot in Player::CanStoreItems in case specialized bag.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
02dd431846
commit
3ab8264189
2 changed files with 7 additions and 1 deletions
|
|
@ -9848,6 +9848,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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue