mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[10450] Skip wrong guid movement packets.
Also fix src/game/SharedDefines.h line ends corrupted in prev. commit. :/
This commit is contained in:
parent
214c65baa1
commit
72414ad03b
3 changed files with 2725 additions and 2721 deletions
|
|
@ -241,6 +241,10 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
|
|||
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))
|
||||
{
|
||||
recv_data.rpos(recv_data.wpos()); // prevent warnings spam
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue