Skip to content

Commit

Permalink
Fix game exiting when no gamepad connected
Browse files Browse the repository at this point in the history
Game would exit silently when no gamepad was connected, because
gamepadfunc() wasn't initialized and still being called. Caused by
change in b9091b8.
  • Loading branch information
bradharding committed May 5, 2014
1 parent a99729f commit 1c5b988
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/i_gamepad.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ extern boolean idbehold;

void I_InitGamepad(void)
{
gamepadfunc = NULL;

if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) < 0)
return;
else
Expand Down

0 comments on commit 1c5b988

Please sign in to comment.