Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7871 for code/trunk


Ignore:
Timestamp:
Feb 12, 2011, 7:39:29 PM (14 years ago)
Author:
rgrieder
Message:

Fixed msvc build: Functor does not necessarily have to be parametrized with an OrxonoxClass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/command/Functor.h

    r7851 r7871  
    303303            /// Casts the object and registers as destruction listener.
    304304            inline void registerObject(O* object)
    305                 { OrxonoxClass* base = orxonox_cast<OrxonoxClass*>(object); if (base) { this->registerAsDestructionListener(base); } }
     305                { OrxonoxClass* base = dynamic_cast<OrxonoxClass*>(object); if (base) { this->registerAsDestructionListener(base); } }
    306306            /// Casts the object and unregisters as destruction listener.
    307307            inline void unregisterObject(O* object)
    308                 { OrxonoxClass* base = orxonox_cast<OrxonoxClass*>(object); if (base) { this->unregisterAsDestructionListener(base); } }
     308                { OrxonoxClass* base = dynamic_cast<OrxonoxClass*>(object); if (base) { this->unregisterAsDestructionListener(base); } }
    309309
    310310            /// Will be called by OrxonoxClass::~OrxonoxClass() if the stored object is deleted and the Functor is in safe mode.
Note: See TracChangeset for help on using the changeset viewer.