fixed bug causing access to negative array index
authorHolger Schemel <info@artsoft.org>
Sat, 21 Apr 2018 22:19:27 +0000 (00:19 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 26 Apr 2018 23:14:15 +0000 (01:14 +0200)
src/screens.c

index 87f1908cce8117f0d3971212a74e412b7cdec320..0e4c09c9599e961e5137c9021bc91bab6556abee 100644 (file)
@@ -7002,6 +7002,8 @@ static boolean ConfigureJoystickMapButtonsAndAxes(SDL_Joystick *joystick)
                /* leave screen */
                success = FALSE;
                done = TRUE;
+
+               break;
              }
 
              /* undo this step */