Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8402 for code/trunk/src


Ignore:
Timestamp:
May 5, 2011, 3:40:12 PM (14 years ago)
Author:
scheusso
Message:

fix for Notification Script (bug is in network)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/network/GamestateManager.h

    r8327 r8402  
    8787    virtual bool      ackGamestate(unsigned int gamestateID, unsigned int peerID);
    8888    virtual uint32_t  getLastReceivedGamestateID( unsigned int peerID );
    89     virtual uint32_t  getCurrentGamestateID(){ return currentGamestate_->getID(); }
     89    virtual uint32_t  getCurrentGamestateID(){ if( currentGamestate_) return currentGamestate_->getID(); else return GAMESTATEID_INITIAL; }
    9090   
    9191    bool processGamestates();
Note: See TracChangeset for help on using the changeset viewer.