Various memory-related bug fixes

Also new lzokay API to reduce erroneous usage.
This commit is contained in:
Jack Andersen
2019-06-13 20:27:33 -10:00
parent 4c873591f0
commit 036c56370c
5 changed files with 18 additions and 11 deletions

View File

@@ -70,7 +70,7 @@ public:
virtual void Destruct(void* pData) const
{
RevertToDefault(pData);
TTypedProperty::Destruct(pData);
_GetInternalArray(pData).~SScriptArray();
}
virtual bool MatchesDefault(void* pData) const