Core/Misc: Define some methods const
This commit is contained in:
1 parent
ced723a53a
commit
81606e5d1e
127 files changed
+273
-269
No files matched your search
@@ -77,17 +77,13 @@ void SummonList::RemoveNotExisting()
|
||||
}
|
||||
}
|
||||
|
||||
bool SummonList::HasEntry(uint32 entry)
|
||||
bool SummonList::HasEntry(uint32 entry) const
|
||||
{
|
||||
for (iterator i = begin(); i != end();)
|
||||
for (const_iterator i = begin(); i != end(); ++i)
|
||||
{
|
||||
Creature* summon = Unit::GetCreature(*me, *i);
|
||||
if (!summon)
|
||||
erase(i++);
|
||||
else if (summon->GetEntry() == entry)
|
||||
if (summon && summon->GetEntry() == entry)
|
||||
return true;
|
||||
else
|
||||
++i;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user