mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +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);
|
||||
assert(Defaults == NULL);
|
||||
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