Patched to compile on Windows.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 20 Oct 2013 16:01:10 -0400
changeset 7848 4f77ff668405
parent 7847 038da46576e6
child 7849 99607295ac82
Patched to compile on Windows.
src/haptic/windows/SDL_syshaptic.c
--- a/src/haptic/windows/SDL_syshaptic.c	Sun Oct 20 15:55:47 2013 -0400
+++ b/src/haptic/windows/SDL_syshaptic.c	Sun Oct 20 16:01:10 2013 -0400
@@ -636,7 +636,7 @@
 int
 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
 {
-    if ((joystick->hwdata->bXInputHaptic != haptic->hwdata->bXInputHaptic) {
+    if (joystick->hwdata->bXInputHaptic != haptic->hwdata->bXInputHaptic) {
         return 0;  /* one is XInput, one is not; not the same device. */
     } else if (joystick->hwdata->bXInputHaptic) {  /* XInput */
         return (haptic->hwdata->userid == joystick->hwdata->userid);