We actually get NULL here, so these stay for now, Clang warnings be damned.

This commit is contained in:
Ryan C. Gordon 2016-03-31 21:54:25 -04:00
parent 88c41117f5
commit 0f6b9ca1c1

View File

@ -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;
}
//}
}
};
/*