[9969] Additional check for HandleAutoBankItemOpcode.

This commit is contained in:
VladimirMangos 2010-05-24 11:29:38 +04:00
parent e3955bbc59
commit e55551013d
2 changed files with 9 additions and 1 deletions

View file

@ -905,6 +905,14 @@ void WorldSession::HandleAutoBankItemOpcode(WorldPacket& recvPacket)
return;
}
// no-op: placed in same slot
if(dest.size() == 1 && dest[0].pos == pItem->GetPos())
{
// just remove gray item state
_player->SendEquipError( EQUIP_ERR_NONE, pItem, NULL );
return;
}
_player->RemoveItem(srcbag, srcslot, true);
_player->BankItem( dest, pItem, true );
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9968"
#define REVISION_NR "9969"
#endif // __REVISION_NR_H__