[9052] Fixed possible crash at fake items swap packet.

This commit is contained in:
VladimirMangos 2009-12-24 01:23:40 +03:00
parent 0e42b18946
commit 391133cb8f
2 changed files with 14 additions and 7 deletions

View file

@ -11260,6 +11260,13 @@ void Player::SwapItem( uint16 src, uint16 dst )
return;
}
// prevent put equipped/bank bag in self
if (IsBagPos(dst) && dstslot == srcbag)
{
SendEquipError( EQUIP_ERR_NONEMPTY_BAG_OVER_OTHER_BAG, pDstItem, pSrcItem );
return;
}
// DST checks
if (pDstItem)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9051"
#define REVISION_NR "9052"
#endif // __REVISION_NR_H__