fixed GetLocalProfileIndexFromID

This commit is contained in:
Vecais Dumais Laacis
2007-02-02 20:19:14 +00:00
parent cfcb8d1953
commit 603f863e0c
+1 -1
View File
@@ -804,7 +804,7 @@ int ProfileManager::GetLocalProfileIndexFromID( RString sProfileID ) const
RString sDir = LocalProfileIDToDir( sProfileID ); RString sDir = LocalProfileIDToDir( sProfileID );
FOREACH_CONST( DirAndProfile, g_vLocalProfile, i ) FOREACH_CONST( DirAndProfile, g_vLocalProfile, i )
{ {
if( i->sDir == sProfileID ) if( i->sDir == sDir )
return i - g_vLocalProfile.begin(); return i - g_vLocalProfile.begin();
} }
return -1; return -1;