Fix nasty typo in joystick init.
This commit is contained in:
parent
625f1bf82a
commit
8468ab4260
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ int init_joystick()
|
|||
std::cerr << "Initializing joystick...\n";
|
||||
|
||||
if(SDL_InitSubSystem(SDL_INIT_JOYSTICK) >= 0) {
|
||||
if(SDL_JoystickOpen(0) == NULL)
|
||||
if(SDL_JoystickOpen(0) != NULL)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue