diff options
-rw-r--r-- | src/hotkeys.cpp | 4 |
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)); } } |