mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Movement: do not trigger an assert when receiving movement opcodes without movers (packet hack protection)
This commit is contained in:
@@ -293,7 +293,9 @@ void WorldSession::HandleMovementOpcodes(WorldPacket& recvPacket)
|
||||
|
||||
Unit* mover = _player->m_unitMovedByMe;
|
||||
|
||||
ASSERT(mover != nullptr); // there must always be a mover
|
||||
// there must always be a mover
|
||||
if (!mover)
|
||||
return;
|
||||
|
||||
Player* plrMover = mover->ToPlayer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user