mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:29:46 +00:00
[SDL2] pointer boolean (#8523)
This commit is contained in:
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
|
||||
keepGoing = SDL_FALSE;
|
||||
break;
|
||||
case SDL_JOYDEVICEADDED:
|
||||
if (joystick != NULL) {
|
||||
if (joystick) {
|
||||
SDL_Log("Only one joystick supported by this test\n");
|
||||
} else {
|
||||
joystick = SDL_JoystickOpen(event.jdevice.which);
|
||||
|
||||
Reference in New Issue
Block a user