From 9910074bcc59400001493219955c0d14f40d23bc Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 3 Aug 2005 03:11:15 +0000 Subject: [PATCH] don't throw on invalid xml --- stepmania/src/ActorUtil.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 0deb4d8fa0..261f2ae9ef 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -301,7 +301,10 @@ Actor* ActorUtil::MakeActor( const RageTextureID &ID ) { XNode xml; if( !xml.LoadFromFile(ID.filename) ) - RageException::Throw( ssprintf("Error loading %s", ID.filename.c_str()) ); + { + // XNode will warn about the error + return new Sprite; + } CString sDir = Dirname( ID.filename ); return LoadFromActorFile( sDir, &xml ); }