From 7069ea88bb65e1c359d9b772635aca3071064540 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Mon, 21 Jun 2010 01:49:35 +0000 Subject: [PATCH] - Fixed erroneous allocation of class defaults using new to M_Malloc to match the rest of them. SVN r2386 (trunk) --- src/dobjtype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dobjtype.cpp b/src/dobjtype.cpp index 3e733ce36..a51e8ad0c 100644 --- a/src/dobjtype.cpp +++ b/src/dobjtype.cpp @@ -384,7 +384,7 @@ const PClass *PClass::FindClassTentative (FName name) void PClass::InitializeActorInfo () { Symbols.SetParentTable (&ParentClass->Symbols); - Defaults = new BYTE[Size]; + Defaults = (BYTE *)M_Malloc(Size); if (ParentClass->Defaults != NULL) { memcpy (Defaults, ParentClass->Defaults, ParentClass->Size);