Changeset 8403 for code/trunk/src/libraries/network/Host.cc
- Timestamp:
- May 5, 2011, 4:02:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/network/Host.cc
r8327 r8403 161 161 return false; 162 162 } 163 164 Host* Host::getActiveInstance() 165 { 166 std::vector<Host*>::iterator it = Host::instances_s.begin(); 167 while( it != Host::instances_s.end() ) 168 { 169 if( (*it)->isActive() ) 170 return *it; 171 } 172 return 0; 173 } 174 163 175 164 176 }//namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.