Mac: Fix error message for haptic subsystem.
authorJørgen P. Tjernø <jorgen@valvesoftware.com>
Tue, 25 Feb 2014 17:25:49 -0800
changeset 8259 1816872373d5
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
--- a/src/haptic/darwin/SDL_syshaptic.c	Tue Feb 25 15:28:12 2014 -0800
+++ b/src/haptic/darwin/SDL_syshaptic.c	Tue Feb 25 17:25:49 2014 -0800
@@ -156,7 +156,7 @@
     io_service_t device;
 
     if (numhaptics != -1) {
-        return SDL_Error("Haptic subsystem already initialized!");
+        return SDL_SetError("Haptic subsystem already initialized!");
     }
     numhaptics = 0;