Skip to content
Permalink
Browse files

Changed function to return -1 through SDL_Error() instead of plain -1.

  • Loading branch information
philippwiesemann committed Nov 10, 2013
1 parent 82b3e7d commit 0ab7624cdec6a7a7802cc055735d24104f6e3b7d
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/joystick/android/SDL_sysjoystick.c
@@ -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");
}
}

0 comments on commit 0ab7624

Please sign in to comment.