src/haptic/SDL_haptic.c
changeset 7533 8f4447da4cfd
parent 7531 a117b90a3a12
child 7536 5b6e09ec3dd3
--- a/src/haptic/SDL_haptic.c	Sat Jul 27 14:06:06 2013 +0200
+++ b/src/haptic/SDL_haptic.c	Sat Jul 27 14:22:52 2013 +0200
@@ -182,7 +182,7 @@
     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;