diff options
Diffstat (limited to 'src/game/PetHandler.cpp')
| -rw-r--r-- | src/game/PetHandler.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/PetHandler.cpp b/src/game/PetHandler.cpp index 15f807a3cce..56845eaa656 100644 --- a/src/game/PetHandler.cpp +++ b/src/game/PetHandler.cpp @@ -69,7 +69,7 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )      {          //If a pet is dismissed, m_Controlled will change          std::vector<Unit*> controlled; -        for(ControlList::iterator itr = GetPlayer()->m_Controlled.begin(); itr != GetPlayer()->m_Controlled.end(); ++itr) +        for(Unit::ControlList::iterator itr = GetPlayer()->m_Controlled.begin(); itr != GetPlayer()->m_Controlled.end(); ++itr)              if((*itr)->GetEntry() == pet->GetEntry() && (*itr)->isAlive())                  controlled.push_back(*itr);          for(std::vector<Unit*>::iterator itr = controlled.begin(); itr != controlled.end(); ++itr)  | 
