Core/GameObjects: Fix crash if GameObject cannot be created

Close #13798
This commit is contained in:
jackpoz
2014-12-28 22:29:01 +01:00
parent 702f774a49
commit f09217ec04
@@ -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();