warning fix

This commit is contained in:
Ovahlord committed 2022-01-16 19:35:37 +01:00
1 parent a06b3cea3c
commit edcc11423b
1 file changed
+1 -1
+1 -1
View File
@@ -265,7 +265,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPackets::Spells::CastSpell& cast)
{ {
// ignore for remote control state (for player case) // ignore for remote control state (for player case)
Unit* mover = GetGameClient()->GetActivelyMovedUnit(); Unit* mover = GetGameClient()->GetActivelyMovedUnit();
if (!mover || mover != _player && mover->IsPlayer()) if (!mover || (mover != _player && mover->IsPlayer()))
return; return;
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(cast.Cast.SpellID); SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(cast.Cast.SpellID);