fixed build²

This commit is contained in:
Ovahlord
2021-07-06 18:14:49 +02:00
parent 5614db5976
commit dbada5fcb4

View File

@@ -611,7 +611,7 @@ void WorldSession::HandleUpdateMissileTrajectory(WorldPackets::Spells::UpdateMis
{
Unit* caster = ObjectAccessor::GetUnit(*_player, updateMissileTrajectory.Guid);
Spell* spell = caster ? caster->GetCurrentSpell(CURRENT_GENERIC_SPELL) : nullptr;
if (!spell || spell->m_spellInfo->Id != updateMissileTrajectory.SpellID || !spell->m_targets.HasDst() || !spell->m_targets.HasSrc())
if (!spell || int32(spell->m_spellInfo->Id) != updateMissileTrajectory.SpellID || !spell->m_targets.HasDst() || !spell->m_targets.HasSrc())
return;
Position pos = *spell->m_targets.GetSrcPos();