fix crash

This commit is contained in:
Glenn Maynard
2005-09-10 05:10:59 +00:00
parent 2ef40c8e4e
commit abf3b21567
+4
View File
@@ -14,6 +14,10 @@ void AutoActor::Load( const CString &sPath )
{
Unload();
m_pActor = ActorUtil::MakeActor( sPath );
/* If a Condition is false, MakeActor will return NULL. */
if( m_pActor == NULL )
m_pActor = new Actor;
}
void AutoActor::LoadFromNode( const CString &sDir, const XNode* pNode )