mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10736] Fixed unexpected typo in prev. commit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
876458c6e4
commit
5579471075
2 changed files with 2 additions and 3 deletions
|
|
@ -5911,13 +5911,12 @@ Pet* Unit::FindGuardianWithEntry(uint32 entry)
|
|||
{
|
||||
for(GuardianPetList::const_iterator itr = m_guardianPets.begin(); itr != m_guardianPets.end(); ++itr)
|
||||
if(Pet* pet = GetMap()->GetPet(*itr))
|
||||
if (pet->getPetType() == entry)
|
||||
if (pet->GetEntry() == entry)
|
||||
return pet;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Pet* Unit::GetProtectorPet()
|
||||
{
|
||||
for(GuardianPetList::const_iterator itr = m_guardianPets.begin(); itr != m_guardianPets.end(); ++itr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue