mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 12:12:34 -04:00
Core/Misc: Define some methods const
This commit is contained in:
@@ -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