mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Warning fix
This commit is contained in:
@@ -338,7 +338,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket)
|
||||
|
||||
// ignore for remote control state (for player case)
|
||||
Unit* mover = GetGameClient()->GetActivelyMovedUnit();
|
||||
if (!mover || mover != _player && mover->GetTypeId() == TYPEID_PLAYER)
|
||||
if (!mover || (mover != _player && mover->GetTypeId() == TYPEID_PLAYER))
|
||||
{
|
||||
recvPacket.rfinish(); // prevent spam at ignore packet
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user