mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-01-12 04:17:25 -05:00
fixed saving key change bug
This commit is contained in:
parent
25f405838a
commit
208f2feed5
@ -666,7 +666,7 @@ func (menu *KeyBindingMenu) onDefaultClicked() error {
|
||||
func (menu *KeyBindingMenu) onAcceptClicked() error {
|
||||
for gameEvent, change := range menu.changesToBeSaved {
|
||||
menu.keyMap.SetPrimaryBinding(gameEvent, change.primary)
|
||||
menu.keyMap.SetSecondaryBinding(gameEvent, change.primary)
|
||||
menu.keyMap.SetSecondaryBinding(gameEvent, change.secondary)
|
||||
}
|
||||
|
||||
menu.changesToBeSaved = make(map[d2enum.GameEvent]*bindingChange)
|
||||
|
Loading…
Reference in New Issue
Block a user