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 );
|
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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue