Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 10, 2011, 10:26:46 PM (13 years ago)
Author:
landauf
Message:

moved if(object) condition from WeakPtr to DestructionListener

File:
1 edited

Legend:

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

    r7849 r7850  
    195195        protected:
    196196            inline void registerAsDestructionListener(OrxonoxClass* object)
    197                 { object->registerDestructionListener(this); }
     197                { if (object) { object->registerDestructionListener(this); } }
    198198            inline void unregisterAsDestructionListener(OrxonoxClass* object)
    199                 { object->unregisterDestructionListener(this); }
     199                { if (object) { object->unregisterDestructionListener(this); } }
    200200
    201201            virtual void objectDeleted() = 0;
Note: See TracChangeset for help on using the changeset viewer.