mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
[9052] Fixed possible crash at fake items swap packet.
This commit is contained in:
parent
0e42b18946
commit
391133cb8f
2 changed files with 14 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9051"
|
||||
#define REVISION_NR "9052"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue