Merge pull request #607 from helviojr/joystick_event_initialize_fix

Fix joy_max for initialize loop
This commit is contained in:
Richard Goedeken 2019-01-16 19:45:27 -08:00 committed by GitHub
commit c3e3f17e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -461,7 +461,7 @@ void event_initialize(void)
if (phrase_str[1] == '*')
{
joy_min = 0;
joy_max = NumJoysticks;
joy_max = NumJoysticks - 1;
}
else if (phrase_str[1] >= '0' && phrase_str[1] <= '9')
{