diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 4f27845698..4734a8c9f4 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -240,17 +240,6 @@ Actor* ActorUtil::MakeActor( const CString &sPath ) FileType ft = GetFileType( sPath ); switch( ft ) { - case FT_Xml: - { - XNode xml; - if( !xml.LoadFromFile(sPath) ) - { - // XNode will warn about the error - return new Actor; - } - CString sDir = Dirname( sPath ); - return LoadFromActorFile( sDir, &xml ); - } case FT_Directory: { CString sDir = sPath; @@ -275,6 +264,17 @@ Actor* ActorUtil::MakeActor( const CString &sPath ) return pBGA; } } + case FT_Xml: + { + XNode xml; + if( !xml.LoadFromFile(sPath) ) + { + // XNode will warn about the error + return new Actor; + } + CString sDir = Dirname( sPath ); + return LoadFromActorFile( sDir, &xml ); + } case FT_Bitmap: case FT_Movie: {