make xml parse errors non fatal

This commit is contained in:
Chris Danford
2005-07-27 20:57:52 +00:00
parent 2c1f32cd3e
commit 93b19e21f1
+4 -1
View File
@@ -331,7 +331,10 @@ Actor* ActorUtil::MakeActor( const RageTextureID &ID )
{
XNode xml;
if( !xml.LoadFromFile(sXml) )
RageException::Throw( ssprintf("Error loading %s", sXml.c_str()) );
{
// XNode will warn about the error
return new Sprite;
}
return LoadFromActorFile( sDir, &xml );
}
else