瀏覽代碼

Mac: Fix error message for haptic subsystem.

We were calling SDL_Error instead of SDL_SetError when the haptic subsystem
wasn't initialized.
J?rgen P. Tjern? 11 年之前
父節點
當前提交
98d8737961
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/haptic/darwin/SDL_syshaptic.c

+ 1 - 1
src/haptic/darwin/SDL_syshaptic.c

@@ -156,7 +156,7 @@ SDL_SYS_HapticInit(void)
     io_service_t device;
     io_service_t device;
 
 
     if (numhaptics != -1) {
     if (numhaptics != -1) {
-        return SDL_Error("Haptic subsystem already initialized!");
+        return SDL_SetError("Haptic subsystem already initialized!");
     }
     }
     numhaptics = 0;
     numhaptics = 0;