diff --git a/LEGO1/tgl/d3drm/texture.cpp b/LEGO1/tgl/d3drm/texture.cpp index 79452ba6..ea8ef1b0 100644 --- a/LEGO1/tgl/d3drm/texture.cpp +++ b/LEGO1/tgl/d3drm/texture.cpp @@ -81,7 +81,7 @@ TglD3DRMIMAGE::TglD3DRMIMAGE( void TglD3DRMIMAGE::Destroy() { if (m_texelsAllocatedByClient == 0) { - delete m_image.buffer1; + delete[] ((char*) m_image.buffer1); } delete m_image.palette; } @@ -111,7 +111,7 @@ Result TglD3DRMIMAGE::CreateBuffer(int width, int height, int depth, void* pBuff m_image.bytes_per_line = width; if (!m_texelsAllocatedByClient) { - delete[] m_image.buffer1; + delete[] ((char*) m_image.buffer1); m_image.buffer1 = NULL; }