From 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 02:43:29 +0100 Subject: i am in hell --- src/T2DLL/T2DlgItemAnimation.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/T2DLL/T2DlgItemAnimation.cpp') diff --git a/src/T2DLL/T2DlgItemAnimation.cpp b/src/T2DLL/T2DlgItemAnimation.cpp index b2f8589..905bcf5 100644 --- a/src/T2DLL/T2DlgItemAnimation.cpp +++ b/src/T2DLL/T2DlgItemAnimation.cpp @@ -3,6 +3,12 @@ #include "T2DlgItemAnimation.h" #include "T2ImageObj.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + T2DlgItemAnimation::T2DlgItemAnimation(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette) : T2DlgItem(inDoc, inImageObj, inPalette) { @@ -52,8 +58,8 @@ void T2DlgItemAnimation::SetAnimation(HINSTANCE inModule, int inResID, int unk) delete mImageObj; #line 60 - mBitImage = DEBUG_NEW T2BitImage(GetWorldModuleHandle(), inResID, true); - mImageObj = DEBUG_NEW T2ImageObj; + mBitImage = new T2BitImage(GetWorldModuleHandle(), inResID, true); + mImageObj = new T2ImageObj; mImageObj->AddObject(GetWorldModuleHandle(), inResID, mBitImage); mStartFrame = 0; -- cgit v1.2.3