src/haptic/SDL_haptic.c
changeset 7533 8f4447da4cfd
parent 7531 a117b90a3a12
child 7536 5b6e09ec3dd3
     1.1 --- a/src/haptic/SDL_haptic.c	Sat Jul 27 14:06:06 2013 +0200
     1.2 +++ b/src/haptic/SDL_haptic.c	Sat Jul 27 14:22:52 2013 +0200
     1.3 @@ -182,7 +182,7 @@
     1.4      if ((device_index < 0) || (device_index >= SDL_numhaptics)) {
     1.5          SDL_SetError("Haptic: There are %d haptic devices available",
     1.6                       SDL_numhaptics);
     1.7 -        return -1;
     1.8 +        return 0;
     1.9      }
    1.10  
    1.11      opened = 0;