diff --git a/src/haptic/darwin/SDL_syshaptic.c b/src/haptic/darwin/SDL_syshaptic.c index cb020540a..14beb6c86 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;