Skip to content

Commit

Permalink
Changed function to return -1 through SDL_Error() instead of plain -1.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Nov 10, 2013
1 parent 82b3e7d commit 0ab7624
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/joystick/android/SDL_sysjoystick.c
Expand Up @@ -170,8 +170,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index)
SYS_Joysticks[device_index] = joystick;
return 0;
} else {
SDL_SetError("No joystick available with that index");
return (-1);
return SDL_SetError("No joystick available with that index");
}
}

Expand Down

0 comments on commit 0ab7624

Please sign in to comment.