[Orxonox-commit 4974] r9643 - code/branches/core6/src/libraries/core/class

landauf at orxonox.net landauf at orxonox.net
Sun Aug 11 22:38:29 CEST 2013


Author: landauf
Date: 2013-08-11 22:38:29 +0200 (Sun, 11 Aug 2013)
New Revision: 9643

Modified:
   code/branches/core6/src/libraries/core/class/Identifier.h
Log:
bugfix

Modified: code/branches/core6/src/libraries/core/class/Identifier.h
===================================================================
--- code/branches/core6/src/libraries/core/class/Identifier.h	2013-08-11 19:39:59 UTC (rev 9642)
+++ code/branches/core6/src/libraries/core/class/Identifier.h	2013-08-11 20:38:29 UTC (rev 9643)
@@ -291,7 +291,8 @@
             ~ClassIdentifier()
             {
                 SuperFunctionDestruction<0, T>::destroy(this);
-                classIdentifier_s = 0;
+                if (classIdentifier_s == this)
+                    classIdentifier_s = 0;
             }
 
             void updateConfigValues(bool updateChildren, Listable*) const;




More information about the Orxonox-commit mailing list