mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Warning fix
This commit is contained in:
@@ -589,7 +589,7 @@ void WorldSession::HandleUpdateMissileTrajectory(WorldPackets::Spells::UpdateMis
|
||||
{
|
||||
Unit* caster = ObjectAccessor::GetUnit(*_player, packet.Guid);
|
||||
Spell* spell = caster ? caster->GetCurrentSpell(CURRENT_GENERIC_SPELL) : NULL;
|
||||
if (!spell || spell->m_spellInfo->Id != packet.SpellID || !spell->m_targets.HasDst() || !spell->m_targets.HasSrc())
|
||||
if (!spell || spell->m_spellInfo->Id != uint32(packet.SpellID) || !spell->m_targets.HasDst() || !spell->m_targets.HasSrc())
|
||||
return;
|
||||
|
||||
Position pos = *spell->m_targets.GetSrcPos();
|
||||
|
||||
Reference in New Issue
Block a user