don't throw on invalid xml

This commit is contained in:
Chris Danford
2005-08-03 03:11:15 +00:00
parent c0b05774bf
commit 9910074bcc
+4 -1
View File
@@ -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 );
}