Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 10, 2008, 11:09:43 AM (16 years ago)
Author:
scheusso
Message:

cant remember ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/SpaceShip.cc

    r1755 r1758  
    7676      ObjectList<SpaceShip>::iterator it;
    7777      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) )
    7980          return *it;
    8081      }
    81       assert(0);
     82      return 0;
    8283      return 0;
    8384    }
Note: See TracChangeset for help on using the changeset viewer.