Skip to content

Commit

Permalink
Minor fix for if SDL_JoystickInit is called more than once without a …
Browse files Browse the repository at this point in the history
…matching SDL_JoystickQuit.
  • Loading branch information
slime73 committed Jul 15, 2014
1 parent 1506b3b commit c81ce5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/iphoneos/SDL_sysjoystick.m
Expand Up @@ -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;
Expand Down

0 comments on commit c81ce5a

Please sign in to comment.