diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index a9d7509ba4..0165e0bb5e 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -106,9 +106,10 @@ void BGAnimationLayer::LoadFromVisualization( CString sMoviePath ) void BGAnimationLayer::LoadFromAniLayerFile( CString sPath, CString sSongBGPath ) { - sPath.MakeLower(); + CString lcPath = sPath; + lcPath.MakeLower(); - if( sPath.Find("usesongbg") != -1 ) + if( lcPath.Find("usesongbg") != -1 ) { LoadFromStaticGraphic( sSongBGPath ); return; // this will ignore other effects in the file name @@ -145,7 +146,7 @@ void BGAnimationLayer::LoadFromAniLayerFile( CString sPath, CString sSongBGPath for( int i=0; i