[10450] Skip wrong guid movement packets.

Also fix src/game/SharedDefines.h line ends corrupted in prev. commit. :/
This commit is contained in:
VladimirMangos 2010-09-06 18:33:26 +04:00
parent 214c65baa1
commit 72414ad03b
3 changed files with 2725 additions and 2721 deletions

View file

@ -241,6 +241,10 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
recv_data >> movementInfo; recv_data >> movementInfo;
/*----------------*/ /*----------------*/
// ignore wrong guid (player attempt cheating own session for not own guid possible...)
if (guid != mover->GetObjectGuid())
return;
if (!MaNGOS::IsValidMapCoord(movementInfo.GetPos()->x, movementInfo.GetPos()->y, movementInfo.GetPos()->z, movementInfo.GetPos()->o)) if (!MaNGOS::IsValidMapCoord(movementInfo.GetPos()->x, movementInfo.GetPos()->y, movementInfo.GetPos()->z, movementInfo.GetPos()->o))
{ {
recv_data.rpos(recv_data.wpos()); // prevent warnings spam recv_data.rpos(recv_data.wpos()); // prevent warnings spam

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10449" #define REVISION_NR "10450"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__