Core/Movement: do not trigger an assert when receiving movement opcodes without movers (packet hack protection)
This commit is contained in:
1 parent
207d5b66ba
commit
75bbeb8f69
1 file changed
+3
-1
@@ -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