Skip to content

Commit

Permalink
Mac: Fix error message for haptic subsystem.
Browse files Browse the repository at this point in the history
We were calling SDL_Error instead of SDL_SetError when the haptic subsystem
wasn't initialized.
  • Loading branch information
jorgenpt committed Feb 26, 2014
1 parent 95f7e24 commit 98d8737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -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;

Expand Down

0 comments on commit 98d8737

Please sign in to comment.