Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6534 in orxonox.OLD for branches/network/src/world_entities


Ignore:
Timestamp:
Jan 18, 2006, 1:22:49 PM (19 years ago)
Author:
rennerc
Message:

sync: check if model loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/world_entity.cc

    r6528 r6534  
    559559  SYNCHELP_WRITE_FKT( PNode::readState );
    560560
    561   SYNCHELP_WRITE_STRING( getModel( 0 )->getName() );
     561  if ( getModel(0) )
     562  {
     563    SYNCHELP_WRITE_STRING( getModel( 0 )->getName() );
     564  }
     565  else
     566  {
     567    SYNCHELP_WRITE_STRING("");
     568  }
     569
    562570  SYNCHELP_WRITE_FLOAT( scaling );
    563571  /*if ( this->md2TextureFileName!=NULL && strcmp(this->md2TextureFileName, "") )
Note: See TracChangeset for help on using the changeset viewer.