mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-17 17:41:23 +00:00
Merge pull request #536 from edward-san/pclass_alloc_mismatch
- Fixed alloc/dealloc mismatch in PClass code.
This commit is contained in:
commit
297ffc5889
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ void PClassActor::InitializeNativeDefaults()
|
||||||
{
|
{
|
||||||
Symbols.SetParentTable(&ParentClass->Symbols);
|
Symbols.SetParentTable(&ParentClass->Symbols);
|
||||||
assert(Defaults == NULL);
|
assert(Defaults == NULL);
|
||||||
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