Fix an off-by-one error in key config menu
When checking for user input in the keyboard config menu, a read past the end of the DebouncedKeyboardInput array returned a nonzero value on some systems, which prevented setting a valid binding.
This commit is contained in:
parent
152e6d7f26
commit
ecfbee98c5
1 changed files with 1 additions and 1 deletions
|
@ -2270,7 +2270,7 @@ static void ActUponUsersInput(void)
|
|||
signed int key,selectedKey=-1;
|
||||
|
||||
// see if a valid key has been pressed
|
||||
for (key = 0 ; key <= MAX_NUMBER_OF_INPUT_KEYS ; key++)
|
||||
for (key = 0 ; key < MAX_NUMBER_OF_INPUT_KEYS ; key++)
|
||||
{
|
||||
if (!(key == KEY_ESCAPE) &&
|
||||
// !(key >= KEY_F1 && key <= KEY_F12) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue