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

Fix crash activating quick key 1

This commit is contained in:
scrawl 2014-06-10 21:34:47 +02:00
parent 10758d6297
commit 07d20c212b

View file

@ -247,7 +247,7 @@ namespace MWGui
void QuickKeysMenu::activateQuickKey(int index) void QuickKeysMenu::activateQuickKey(int index)
{ {
assert (index-1 > 0); assert (index-1 >= 0);
ItemWidget* button = mQuickKeyButtons[index-1]; ItemWidget* button = mQuickKeyButtons[index-1];
QuickKeyType type = mAssigned[index-1]; QuickKeyType type = mAssigned[index-1];