mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +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 ()
|
||||
{
|
||||
Symbols.SetParentTable (&ParentClass->Symbols);
|
||||
Defaults = new BYTE[Size];
|
||||
Defaults = (BYTE *)M_Malloc(Size);
|
||||
if (ParentClass->Defaults != NULL)
|
||||
{
|
||||
memcpy (Defaults, ParentClass->Defaults, ParentClass->Size);
|
||||
|
|
Loading…
Reference in a new issue