Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7848 in orxonox.OLD


Ignore:
Timestamp:
May 25, 2006, 11:42:03 AM (18 years ago)
Author:
bensch
Message:

Temprarily fixed the Missing File-bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/material.cc

    r7788 r7848  
    343343  if (!dMap.empty())
    344344  {
    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();
    347350  }
    348351  else
Note: See TracChangeset for help on using the changeset viewer.