From 603f863e0cb4941df2652a296483a7260ce53c5f Mon Sep 17 00:00:00 2001 From: Vecais Dumais Laacis Date: Fri, 2 Feb 2007 20:19:14 +0000 Subject: [PATCH] fixed GetLocalProfileIndexFromID --- stepmania/src/ProfileManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ProfileManager.cpp b/stepmania/src/ProfileManager.cpp index 3cc1b45036..ae398dbce2 100644 --- a/stepmania/src/ProfileManager.cpp +++ b/stepmania/src/ProfileManager.cpp @@ -804,7 +804,7 @@ int ProfileManager::GetLocalProfileIndexFromID( RString sProfileID ) const RString sDir = LocalProfileIDToDir( sProfileID ); FOREACH_CONST( DirAndProfile, g_vLocalProfile, i ) { - if( i->sDir == sProfileID ) + if( i->sDir == sDir ) return i - g_vLocalProfile.begin(); } return -1;