Changeset - r15416:2eaf7e9dff0a
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-07-03 21:18:02
frosch@openttd.org
(svn r20069) -Fix (r20055): Make valgrind happy.
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/hotkeys.cpp
Show inline comments
 
@@ -218,15 +218,13 @@ void LoadHotkeyGroup(IniGroup *group, T 
 
template<class T>
 
void SaveHotkeyGroup(IniGroup *group, T *hotkey_list)
 
{
 
	for (uint i = 0; hotkey_list[i].num != -1; i++) {
 
		T *hotkey = &hotkey_list[i];
 
		IniItem *item = group->GetItem(hotkey->name, true);
 
		if (hotkey->keycodes.Length() > 0) {
 
			item->value = strdup(SaveKeycodes(hotkey));
 
		}
 
		item->SetValue(SaveKeycodes(hotkey));
 
	}
 
}
 

	
 
template<class T>
 
void SaveLoadHotkeyGroup(IniGroup *group, T *hotkey_list, bool save)
 
{
0 comments (0 inline, 0 general)