mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-25 19:55:54 +01:00
We actually get NULL here, so these stay for now, Clang warnings be damned.
This commit is contained in:
parent
88c41117f5
commit
0f6b9ca1c1
|
@ -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;
|
||||
}
|
||||
//}
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user