mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +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
|
// Reference counting functions
|
||||||
inline void CEntity::AddReference(void) {
|
inline void CEntity::AddReference(void) {
|
||||||
//if (this!=NULL) {
|
if (this!=NULL) {
|
||||||
ASSERT(en_ctReferences>=0);
|
ASSERT(en_ctReferences>=0);
|
||||||
en_ctReferences++;
|
en_ctReferences++;
|
||||||
//}
|
}
|
||||||
};
|
};
|
||||||
inline void CEntity::RemReference(void) {
|
inline void CEntity::RemReference(void) {
|
||||||
//if (this!=NULL) {
|
if (this!=NULL) {
|
||||||
ASSERT(en_ctReferences>0);
|
ASSERT(en_ctReferences>0);
|
||||||
en_ctReferences--;
|
en_ctReferences--;
|
||||||
if(en_ctReferences==0) {
|
if(en_ctReferences==0) {
|
||||||
delete this;
|
delete this;
|
||||||
}
|
}
|
||||||
//}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user