diff --git a/LEGO1/lego/legoomni/src/common/legoanimmmpresenter.cpp b/LEGO1/lego/legoomni/src/common/legoanimmmpresenter.cpp index d579beb1..59c361df 100644 --- a/LEGO1/lego/legoomni/src/common/legoanimmmpresenter.cpp +++ b/LEGO1/lego/legoomni/src/common/legoanimmmpresenter.cpp @@ -44,7 +44,7 @@ LegoAnimMMPresenter::~LegoAnimMMPresenter() VideoManager()->UnregisterPresenter(*this); } - delete m_unk0x68; + delete[] m_unk0x68; NotificationManager()->Unregister(this); } diff --git a/LEGO1/mxdirectx/mxdirectdraw.cpp b/LEGO1/mxdirectx/mxdirectdraw.cpp index 9972a4db..40c353ed 100644 --- a/LEGO1/mxdirectx/mxdirectdraw.cpp +++ b/LEGO1/mxdirectx/mxdirectdraw.cpp @@ -400,7 +400,7 @@ BOOL MxDirectDraw::DDSetMode(int width, int height, int bpp) DDSURFACEDESC ddsd; - FUN_1009e020(); + ClearBackBuffers(); if (!GetDDSurfaceDesc(&ddsd, m_pBackBuffer)) { return FALSE; @@ -550,7 +550,7 @@ BOOL MxDirectDraw::DDCreateSurfaces() // FUNCTION: LEGO1 0x1009e020 // FUNCTION: BETA10 0x10121700 -void MxDirectDraw::FUN_1009e020() +void MxDirectDraw::ClearBackBuffers() { HRESULT result; byte* line; diff --git a/LEGO1/mxdirectx/mxdirectdraw.h b/LEGO1/mxdirectx/mxdirectdraw.h index 822ec375..4e94e841 100644 --- a/LEGO1/mxdirectx/mxdirectdraw.h +++ b/LEGO1/mxdirectx/mxdirectdraw.h @@ -85,7 +85,7 @@ class MxDirectDraw { void Error(const char* p_message, int p_error); BOOL RecreateDirectDraw(GUID** a2); - void FUN_1009e020(); + void ClearBackBuffers(); void FUN_1009d920(); // SYNTHETIC: LEGO1 0x1009d510