Core/Gameobject: Fix a crash when enter Hor

This commit is contained in:
Aokromes committed 2015-09-15 21:20:17 +02:00
1 parent 38f9421a29
commit a6077b31ec
1 file changed
+1 -1
@@ -67,7 +67,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();