Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4463 in orxonox.OLD for orxonox/trunk/src/util/resource_manager.cc


Ignore:
Timestamp:
Jun 2, 2005, 1:03:35 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed bug with not loading the md2-texture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/resource_manager.cc

    r4462 r4463  
    271271                {
    272272                  tmpResource->skinFileName = new char[strlen((const char*)param1)+1];
    273                   strcpy(tmpResource->skinFileName, (const char*) fileName);
     273                  strcpy(tmpResource->skinFileName, (const char*) param1);
    274274                }
    275275              else
    276276                tmpResource->skinFileName = NULL;
    277               char* skinFileName = ResourceManager::getFullName(tmpResource->skinFileName);
    278               tmpResource->pointer = new MD2Data(fullName, skinFileName);
    279               delete []skinFileName;
     277              tmpResource->pointer = new MD2Data(fullName, tmpResource->skinFileName);
    280278            }
    281279              break;
Note: See TracChangeset for help on using the changeset viewer.