From c81ce5a0a8ca5b0ee4cecdd1e21730757c565fb1 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Tue, 15 Jul 2014 02:04:08 -0300 Subject: [PATCH] Minor fix for if SDL_JoystickInit is called more than once without a matching SDL_JoystickQuit. --- src/joystick/iphoneos/SDL_sysjoystick.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/iphoneos/SDL_sysjoystick.m b/src/joystick/iphoneos/SDL_sysjoystick.m index 1f37af413319d..31b4e84b08a06 100644 --- a/src/joystick/iphoneos/SDL_sysjoystick.m +++ b/src/joystick/iphoneos/SDL_sysjoystick.m @@ -49,7 +49,7 @@ const char *hint = SDL_GetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK); if (!hint || SDL_atoi(hint)) { /* Default behavior, accelerometer as joystick */ - numjoysticks++; + numjoysticks = 1; } return numjoysticks;