From ef3be01735edb15548a260f7ba2c0fa422a25ba9 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 27 Jul 2013 14:22:52 +0200 Subject: [PATCH] Fixed SDL_HapticOpened() returning -1 instead of 0. According to header file it should only return 0 or 1. --- src/haptic/SDL_haptic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haptic/SDL_haptic.c b/src/haptic/SDL_haptic.c index 2d23e41ed..83cdb9b39 100644 --- a/src/haptic/SDL_haptic.c +++ b/src/haptic/SDL_haptic.c @@ -182,7 +182,7 @@ SDL_HapticOpened(int device_index) if ((device_index < 0) || (device_index >= SDL_numhaptics)) { SDL_SetError("Haptic: There are %d haptic devices available", SDL_numhaptics); - return -1; + return 0; } opened = 0;