From abf3b215674095747ee3f660b7f734068a1c0b1f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 10 Sep 2005 05:10:59 +0000 Subject: [PATCH] fix crash --- stepmania/src/AutoActor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/AutoActor.cpp b/stepmania/src/AutoActor.cpp index 6d280a9054..500f28b45e 100644 --- a/stepmania/src/AutoActor.cpp +++ b/stepmania/src/AutoActor.cpp @@ -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 )