diff options
Diffstat (limited to 'src/game/InstanceData.cpp')
-rw-r--r-- | src/game/InstanceData.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/InstanceData.cpp b/src/game/InstanceData.cpp index b798c884312..778a315c084 100644 --- a/src/game/InstanceData.cpp +++ b/src/game/InstanceData.cpp @@ -305,9 +305,9 @@ void InstanceData::DoSendNotifyToInstance(const char *format, ...) InstanceMap::PlayerList::const_iterator i; if (!PlayerList.isEmpty()) - for (i = PlayerList.begin(); i != PlayerList.end(); ++i) - if ((*i).getSource() && (*i).getSource()->GetSession()) - (*i).getSource()->GetSession()->SendNotification(format); + for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i) + if (i->getSource() && i->getSource()->GetSession()) + i->getSource()->GetSession()->SendNotification(format); } // Complete Achievement for all players in instance @@ -330,5 +330,6 @@ void InstanceData::DoRemoveAurasDueToSpellOnPlayers(uint32 spell) if (!PlayerList.isEmpty()) for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i) - if (i->getSource() && i->getSource()->HasAura(spell)) i->getSource()->RemoveAurasDueToSpell(spell); + if (i->getSource()) + i->getSource()->RemoveAurasDueToSpell(spell); } |