1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 23:23:51 +00:00

[Client] Use correct index when unassigning quickkeys from WindowManager

This commit is contained in:
David Cernat 2019-07-01 13:48:45 +03:00
parent 77952440f6
commit 94a9292cc6

View file

@ -1575,7 +1575,7 @@ namespace MWGui
switch (quickKeyType) switch (quickKeyType)
{ {
case QuickKeysMenu::Type_Unassigned: case QuickKeysMenu::Type_Unassigned:
mQuickKeysMenu->unassignIndex(slot); mQuickKeysMenu->unassignIndex(slot - 1);
break; break;
case QuickKeysMenu::Type_Item: case QuickKeysMenu::Type_Item:
mQuickKeysMenu->onAssignItem(item); mQuickKeysMenu->onAssignItem(item);