src/haptic/darwin/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2555 f5bcc926bac4
parent 2554 2681a04c2d3d
child 2556 fe346eddd3fb
--- a/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 14:48:34 2008 +0000
+++ b/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 14:50:00 2008 +0000
@@ -523,8 +523,9 @@
 
    dwTriggerButton = FFEB_NOTRIGGER;
 
-   if (hap_constant->button != 0)
-      dwTriggerButton = FFJOFS_BUTTON(hap_constant->button);
+   if (button != 0) {
+      dwTriggerButton = FFJOFS_BUTTON(button);
+   }
 
    return dwTriggerButton;
 }