Merge pull request #536 from edward-san/pclass_alloc_mismatch

- Fixed alloc/dealloc mismatch in PClass code.
This commit is contained in:
coelckers 2016-02-05 11:24:06 +01:00
commit 297ffc5889

View file

@ -321,7 +321,7 @@ void PClassActor::InitializeNativeDefaults()
{
Symbols.SetParentTable(&ParentClass->Symbols);
assert(Defaults == NULL);
Defaults = new BYTE[Size];
Defaults = (BYTE *)M_Malloc(Size);
if (ParentClass->Defaults != NULL)
{
memcpy(Defaults, ParentClass->Defaults, ParentClass->Size);