mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 07:57:52 +00:00
- 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:
parent
b8db84b6bc
commit
7069ea88bb
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ const PClass *PClass::FindClassTentative (FName name)
|
||||||
void PClass::InitializeActorInfo ()
|
void PClass::InitializeActorInfo ()
|
||||||
{
|
{
|
||||||
Symbols.SetParentTable (&ParentClass->Symbols);
|
Symbols.SetParentTable (&ParentClass->Symbols);
|
||||||
Defaults = new BYTE[Size];
|
Defaults = (BYTE *)M_Malloc(Size);
|
||||||
if (ParentClass->Defaults != NULL)
|
if (ParentClass->Defaults != NULL)
|
||||||
{
|
{
|
||||||
memcpy (Defaults, ParentClass->Defaults, ParentClass->Size);
|
memcpy (Defaults, ParentClass->Defaults, ParentClass->Size);
|
||||||
|
|
Loading…
Reference in a new issue