From 98d8737961370d4063d1c217dec67da538df78a5 Mon Sep 17 00:00:00 2001 From: "J?rgen P. Tjern?" Date: Tue, 25 Feb 2014 17:25:49 -0800 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haptic/darwin/SDL_syshaptic.c b/src/haptic/darwin/SDL_syshaptic.c index cb020540a182a..14beb6c8608a5 100644 --- a/src/haptic/darwin/SDL_syshaptic.c +++ b/src/haptic/darwin/SDL_syshaptic.c @@ -156,7 +156,7 @@ SDL_SYS_HapticInit(void) io_service_t device; if (numhaptics != -1) { - return SDL_Error("Haptic subsystem already initialized!"); + return SDL_SetError("Haptic subsystem already initialized!"); } numhaptics = 0;