fix crash
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user