Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 13, 2015, 11:15:04 PM (10 years ago)
Author:
landauf
Message:

bugfix: class hierarchy wrongly considered the classes of nested members as base classes of the surrounding class. this is now fixed by using RTTI (i.e. dynamic_cast). also added some tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/class/IdentifierManager.cc

    r10361 r10363  
    122122                    if (temp->getIdentifier() != it->second)
    123123                        orxout(internal_error) << "Newly created object of type " << it->second->getName() << " has unexpected identifier. Did you forget to use RegisterObject(classname)?" << endl;
     124
     125                    it->second->initializeParents(temp, this->identifiersOfNewObject_);
     126
    124127                    delete temp;
    125 
    126                     it->second->initializeParents(this->identifiersOfNewObject_);
    127128                }
    128129                else
Note: See TracChangeset for help on using the changeset viewer.