Mac: Fix error message for haptic subsystem.
authorJørgen P. Tjernø <jorgen@valvesoftware.com>
Tue, 25 Feb 2014 17:25:49 -0800
changeset 82591816872373d5
parent 8258 569354dec4e9
child 8260 028ed8da2524
Mac: Fix error message for haptic subsystem.

We were calling SDL_Error instead of SDL_SetError when the haptic subsystem
wasn't initialized.
src/haptic/darwin/SDL_syshaptic.c
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Tue Feb 25 15:28:12 2014 -0800
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Tue Feb 25 17:25:49 2014 -0800
     1.3 @@ -156,7 +156,7 @@
     1.4      io_service_t device;
     1.5  
     1.6      if (numhaptics != -1) {
     1.7 -        return SDL_Error("Haptic subsystem already initialized!");
     1.8 +        return SDL_SetError("Haptic subsystem already initialized!");
     1.9      }
    1.10      numhaptics = 0;
    1.11