Changeset 5072 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Aug 19, 2005, 12:59:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine.cc
r4857 r5072 95 95 if (this->text) 96 96 delete []this->text; 97 this->text = new char[strlen(text)+1]; 98 strcpy(this->text, text); 97 if (text != NULL) 98 { 99 this->text = new char[strlen(text)+1]; 100 strcpy(this->text, text); 101 } 102 else 103 { 104 this->text = new char[1]; 105 strcpy(this->text, ""); 106 } 99 107 100 108
Note: See TracChangeset
for help on using the changeset viewer.