Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 5, 2011, 4:02:40 PM (13 years ago)
Author:
scheusso
Message:

fixing possible bug with packet ordering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/network/Host.cc

    r8327 r8403  
    161161    return false;
    162162  }
     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
    163175
    164176}//namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.