[7804] Allow swap and move by bag slots equipped ammopouch and quiver

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Foks 2009-05-09 15:06:28 +04:00 committed by VladimirMangos
parent 3c057a92f5
commit 7204f83a55
2 changed files with 10 additions and 7 deletions

View file

@ -9569,6 +9569,8 @@ uint8 Player::CanEquipItem( uint8 slot, uint16 &dest, Item *pItem, bool swap, bo
for(int i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END; ++i)
{
if( Item* pBag = GetItemByPos( INVENTORY_SLOT_BAG_0, i ) )
{
if( pBag != pItem )
{
if( ItemPrototype const* pBagProto = pBag->GetProto() )
{
@ -9583,6 +9585,7 @@ uint8 Player::CanEquipItem( uint8 slot, uint16 &dest, Item *pItem, bool swap, bo
}
}
}
}
uint32 type = pProto->InventoryType;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7803"
#define REVISION_NR "7804"
#endif // __REVISION_NR_H__