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
@@ -75,12 +75,12 @@ void InputMapper::ReadMappingsFromDisk()
if( !ini.ReadFile() )
LOG->Warn( "could not input mapping file '%s'.", sPath.GetString() );
IniFile::const_iterator Key = ini.GetKey( "Input" );
const IniFile::key *Key = ini.GetKey( "Input" );
if( Key != ini.end() )
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;