diff --git a/Sources/Engine/Entities/Entity.h b/Sources/Engine/Entities/Entity.h index 6d0d725..d1d05c8 100644 --- a/Sources/Engine/Entities/Entity.h +++ b/Sources/Engine/Entities/Entity.h @@ -681,19 +681,19 @@ inline CEntity& CEntityPointer::operator*(void) const { return *ep_pen; } ///////////////////////////////////////////////////////////////////// // Reference counting functions inline void CEntity::AddReference(void) { - //if (this!=NULL) { + if (this!=NULL) { ASSERT(en_ctReferences>=0); en_ctReferences++; - //} + } }; inline void CEntity::RemReference(void) { - //if (this!=NULL) { + if (this!=NULL) { ASSERT(en_ctReferences>0); en_ctReferences--; if(en_ctReferences==0) { delete this; } - //} + } }; /*