Changeset 6328 in orxonox.OLD for branches/network/src/world_entities/skybox.cc
- Timestamp:
- Dec 28, 2005, 2:41:52 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/skybox.cc
r6326 r6328 80 80 } 81 81 this->setParentMode(PNODE_MOVEMENT); 82 83 this->textureName = NULL; 82 84 } 83 85 … … 98 100 delete this->material[i]; 99 101 delete[] this->material; 102 if (this->textureName) 103 { 104 delete[] this->textureName; 105 this->textureName = NULL; 106 } 100 107 } 101 108 … … 220 227 SYNCHELP_READ_BEGIN(); 221 228 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 ); 223 235 224 236 PRINT(0)("GOT DATA: size=%f texture='%s'\n", size, textureName);
Note: See TracChangeset
for help on using the changeset viewer.