Changeset 7848 in orxonox.OLD for trunk/src/lib/graphics/importer
- Timestamp:
- May 25, 2006, 11:42:03 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r7788 r7848 343 343 if (!dMap.empty()) 344 344 { 345 346 this->textures[textureNumber] = *(Texture*)ResourceManager::getInstance()->load(dMap, IMAGE, RP_GAME, (int)target); 345 Texture* tex = dynamic_cast<Texture*>(ResourceManager::getInstance()->load(dMap, IMAGE, RP_GAME, (int)target)); 346 if (tex != NULL) 347 this->textures[textureNumber] = *tex; 348 else 349 this->textures[textureNumber] = Texture(); 347 350 } 348 351 else
Note: See TracChangeset
for help on using the changeset viewer.