warning fix

This commit is contained in:
Ovahlord
2022-01-16 19:35:37 +01:00
parent a06b3cea3c
commit edcc11423b

View File

@@ -265,7 +265,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPackets::Spells::CastSpell& cast)
{
// ignore for remote control state (for player case)
Unit* mover = GetGameClient()->GetActivelyMovedUnit();
if (!mover || mover != _player && mover->IsPlayer())
if (!mover || (mover != _player && mover->IsPlayer()))
return;
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(cast.Cast.SpellID);