From 0f6b9ca1c17d09e1c189cffccb9542f9f514544a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 31 Mar 2016 21:54:25 -0400 Subject: [PATCH] We actually get NULL here, so these stay for now, Clang warnings be damned. --- Sources/Engine/Entities/Entity.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } - //} + } }; /*