Changeset 1758 for code/trunk/src/orxonox
- Timestamp:
- Sep 10, 2008, 11:09:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1755 r1758 76 76 ObjectList<SpaceShip>::iterator it; 77 77 for(it = ObjectList<SpaceShip>::begin(); it; ++it){ 78 if( (it)->myShip_ ) 78 assert(it->isA(Class(SpaceShip))); 79 if( (it)->myShip_ || (network::Host::running() && network::Host::getShipID()==(it)->objectID) ) 79 80 return *it; 80 81 } 81 assert(0);82 return 0; 82 83 return 0; 83 84 }
Note: See TracChangeset
for help on using the changeset viewer.