Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 28, 2008, 9:26:23 PM (16 years ago)
Author:
landauf
Message:

a small change to test something

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/infos/Level.cc

    r2031 r2032  
    5252
    5353        this->registerVariables();
    54         this->xmlfilename_ = this->getFilename().substr(Settings::getDataPath().length());
     54        this->xmlfilename_ = this->getFilename();
     55
     56        if (this->xmlfilename_.length() >= Settings::getDataPath().length())
     57            this->xmlfilename_ = this->xmlfilename_.substr(Settings::getDataPath().length());
    5558
    5659        COUT(0) << "created Level" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.