fixed GetLocalProfileIndexFromID
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user