From 16c6e9aec3e76388a2cbc27aa56584d693b505f4 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sat, 17 Oct 2015 20:14:55 -0400 Subject: [PATCH] Fix loading WORST courses. --- src/CourseLoaderCRS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CourseLoaderCRS.cpp b/src/CourseLoaderCRS.cpp index a928c6790c..c180775720 100644 --- a/src/CourseLoaderCRS.cpp +++ b/src/CourseLoaderCRS.cpp @@ -185,7 +185,7 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou // least played else if( sParams[1].Left(strlen("WORST")) == "WORST" ) { - int iChooseIndex = StringToInt( sParams[1].Right(sParams[1].size()-strlen("BEST")) ) - 1; + int iChooseIndex = StringToInt( sParams[1].Right(sParams[1].size()-strlen("WORST")) ) - 1; if( iChooseIndex > iNumSongs ) { // looking up a song that doesn't exist.