1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-28 11:41:31 +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)
{
assert (index-1 > 0);
assert (index-1 >= 0);
ItemWidget* button = mQuickKeyButtons[index-1];
QuickKeyType type = mAssigned[index-1];