Skip to content

Commit

Permalink
[10450] Skip wrong guid movement packets.
Browse files Browse the repository at this point in the history
Also fix src/game/SharedDefines.h line ends corrupted in prev. commit. :/
  • Loading branch information
VladimirMangos committed Sep 6, 2010
1 parent 6fa2052 commit 6492d76
Show file tree
Hide file tree
Showing 3 changed files with 2,725 additions and 2,721 deletions.
4 changes: 4 additions & 0 deletions src/game/MovementHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6492d76

Please sign in to comment.