- Fixed erroneous allocation of class defaults using new to M_Malloc to match the rest of them.

SVN r2386 (trunk)
This commit is contained in:
Randy Heit 2010-06-21 01:49:35 +00:00
parent b8db84b6bc
commit 7069ea88bb

View file

@ -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);