Core/Misc: apply missile canceling codestyle changes based on master branch feedback

This commit is contained in:
Ovahlord committed 2020-08-06 13:38:28 +02:00
1 parent ac6604fba7
commit d45d4ed0de
2 files changed
+3 -7

No files matched your search

+1 -3
View File
@@ -12517,10 +12517,8 @@ void Unit::SendPlaySpellVisualKit(uint32 id, uint32 type, uint32 duration) const
void Unit::CancelSpellMissiles(uint32 spellId, bool reverseMissile /*= false*/)
{
EventList& eventList = m_Events.GetEventList();
bool hasMissile = false;
for (auto itr : eventList)
for (auto itr : m_Events.GetEvents())
{
if (Spell const* spell = Spell::ExtractSpellFromEvent(itr.second))
{