summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hotkeys.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp
index 4bb12503e..eefe96adb 100644
--- a/src/hotkeys.cpp
+++ b/src/hotkeys.cpp
@@ -221,9 +221,7 @@ 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));
}
}