Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2005, 2:41:52 AM (18 years ago)
Author:
rennerc
Message:

fixed some bugs

File:
1 edited

Legend:

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

    r6326 r6328  
    8080    }
    8181  this->setParentMode(PNODE_MOVEMENT);
     82
     83  this->textureName = NULL;
    8284}
    8385
     
    98100    delete this->material[i];
    99101  delete[] this->material;
     102  if (this->textureName)
     103  {
     104    delete[] this->textureName;
     105    this->textureName = NULL;
     106  }
    100107 }
    101108
     
    220227  SYNCHELP_READ_BEGIN();
    221228  SYNCHELP_READ_FLOAT( size );
    222   SYNCHELP_READ_STRING( textureName, 1024 );
     229  if ( textureName )
     230  {
     231    delete[] textureName;
     232    textureName = NULL;
     233  }
     234  SYNCHELP_READ_STRINGM( textureName );
    223235
    224236  PRINT(0)("GOT DATA: size=%f texture='%s'\n", size, textureName);
Note: See TracChangeset for help on using the changeset viewer.