From 82d6889acf3c4823e701aa273e68454f392f77b2 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 29 Jul 2005 02:22:21 +0000 Subject: [PATCH] don't crash dereffing null Actor after loading invalid xml --- stepmania/src/ActorUtil.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 3f88fcd116..0deb4d8fa0 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -256,6 +256,7 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sDir, const XNode* pNode ) CString sError = ssprintf( "The actor file in '%s' is missing the File attribute or has an invalid Class \"%s\"", sDir.c_str(), sClass.c_str() ); Dialog::OK( sError ); + pReturn = new Sprite; // Return a dummy object so that we don't crash in AutoActor later. goto all_done; }