Add scalar ddtor to verify inline destructor

This commit is contained in:
Christian Semmler 2023-11-30 10:57:26 -05:00
parent 2fbe91aaa5
commit 3137494be8
2 changed files with 10 additions and 10 deletions

View File

@ -204,7 +204,13 @@ class LightImpl : public Light {
class MeshImpl : public Mesh {
public:
MeshImpl() : m_data(0) {}
~MeshImpl();
~MeshImpl()
{
if (m_data) {
delete m_data;
m_data = NULL;
}
}
virtual void* ImplementationDataPtr();

View File

@ -7,15 +7,6 @@ DECOMP_SIZE_ASSERT(D3DRMVERTEX, 0x24);
DECOMP_SIZE_ASSERT(Mesh, 0x4);
DECOMP_SIZE_ASSERT(MeshImpl, 0x8);
// Inlined only
MeshImpl::~MeshImpl()
{
if (m_data) {
free(m_data);
m_data = NULL;
}
}
// OFFSET: LEGO1 0x100a3ed0
void* MeshImpl::ImplementationDataPtr()
{
@ -39,6 +30,9 @@ Result MeshImpl::SetColor(float p_r, float p_g, float p_b, float p_a)
}
}
// OFFSET: LEGO1 0x100a3d80 TEMPLATE
// TglImpl::MeshImpl::`scalar deleting destructor'
// OFFSET: LEGO1 0x100a3f50
Result MeshImpl::SetTexture(const Texture* p_texture)
{