diff options
author | md5 | 2011-06-12 17:58:25 +0300 |
---|---|---|
committer | md5 | 2011-06-12 17:58:25 +0300 |
commit | 60943efafd15b0e9bb8bbf533714cac7779b5dba (patch) | |
tree | 986bf56464b0845f1b9dda175c1f041b6da752fb /engines/sci/graphics | |
parent | d9dcb5725af996b3ee0fa74c6d0d0aa9faa4a0e3 (diff) | |
download | scummvm-rg350-60943efafd15b0e9bb8bbf533714cac7779b5dba.tar.gz scummvm-rg350-60943efafd15b0e9bb8bbf533714cac7779b5dba.tar.bz2 scummvm-rg350-60943efafd15b0e9bb8bbf533714cac7779b5dba.zip |
SCI: Fixed bug #3295931 - "SCI: JONES: Disabled commands are available using shortcuts"
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/menu.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/graphics/menu.cpp b/engines/sci/graphics/menu.cpp index 9d4ab3f589..913f680e99 100644 --- a/engines/sci/graphics/menu.cpp +++ b/engines/sci/graphics/menu.cpp @@ -423,7 +423,9 @@ reg_t GfxMenu::kernelSelect(reg_t eventObject, bool pauseSound) { default: while (itemIterator != itemEnd) { itemEntry = *itemIterator; - if ((itemEntry->keyPress == keyPress) && (itemEntry->keyModifier == keyModifier)) + if (itemEntry->keyPress == keyPress && + itemEntry->keyModifier == keyModifier && + itemEntry->enabled) break; itemIterator++; } |