mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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;
|
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
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue