Almost match ~CPlayerGun

Former-commit-id: c332d1ef47
This commit is contained in:
Henrique Gemignani Passos Lima
2022-10-06 14:04:05 +03:00
parent ba9faeb44c
commit f9c75b90ee
6 changed files with 48 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ public:
return GetAllocSpace();
}*/
void* operator new(unsigned long sz) { return operator new(sz, "??(??)", nullptr); }
void operator delete(void* ptr) { ReferenceCount()--; }
void operator delete(void* ptr);
private:
static void* GetAllocSpace() {
@@ -24,4 +24,9 @@ private:
}
};
template < typename T >
void TOneStatic< T >::operator delete(void* ptr) {
ReferenceCount()--;
}
#endif