Core/Movement: do not trigger an assert when receiving movement opcodes without movers (packet hack protection)

This commit is contained in:
Ovahlord committed 2019-02-03 20:51:59 +01:00
1 parent 207d5b66ba
commit 75bbeb8f69
1 file changed
+3 -1
+3 -1
View File
@@ -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();