Skip to content

Commit

Permalink
[SP] JKA: Fixed input-related crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
eezstreet committed Jan 26, 2014
1 parent b2a6955 commit ae01031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/win32/win_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ void IN_Shutdown( void ) {
IN_ShutdownDIMouse();
IN_ShutdownMIDI();
#ifndef NO_XINPUT
if( in_joystick->integer == 2 )
if( in_joystick && in_joystick->integer == 2 )
{
IN_UnloadXInput();
}
Expand Down

0 comments on commit ae01031

Please sign in to comment.