Core/GameObjects: Fix crash if GameObject cannot be created
Close #13798
This commit is contained in:
@@ -68,7 +68,7 @@ GameObject::~GameObject()
|
||||
{
|
||||
delete m_AI;
|
||||
delete m_model;
|
||||
if (m_goInfo->type == GAMEOBJECT_TYPE_TRANSPORT)
|
||||
if (m_goInfo && m_goInfo->type == GAMEOBJECT_TYPE_TRANSPORT)
|
||||
delete m_goValue.Transport.StopFrames;
|
||||
//if (m_uint32Values) // field array can be not exist if GameOBject not loaded
|
||||
// CleanupsBeforeDelete();
|
||||
|
||||
Reference in New Issue
Block a user