changeset 2555:f5bcc926bac4 gsoc2008_force_feedback

Not being able to compile locally gets on my nerves.
author Edgar Simo <bobbens@gmail.com>
date Wed, 30 Jul 2008 14:50:00 +0000
parents 2681a04c2d3d
children fe346eddd3fb
files src/haptic/darwin/SDL_syshaptic.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }