add key renaming

fix a possible glitch
This commit is contained in:
Glenn Maynard
2003-01-03 22:37:44 +00:00
parent 0c9b9c8b28
commit 6341356c9e
4 changed files with 29 additions and 11 deletions
+4 -4
View File
@@ -265,11 +265,11 @@ void SongManager::ReadStatisticsFromDisk()
// load song statistics
IniFile::const_iterator Key = ini.GetKey( "Statistics" );
if( Key != ini.end() )
const IniFile::key *Key = ini.GetKey( "Statistics" );
if( Key )
{
for( IniFile::key::const_iterator i = Key->second.begin();
i != Key->second.end(); ++i )
for( IniFile::key::const_iterator i = Key->begin();
i != Key->end(); ++i )
{
CString name = i->first;
CString value = i->second;