# HG changeset patch # User Edgar Simo # Date 1217429400 0 # Node ID f5bcc926bac4c2bde78178b7ba6f3b88253f3b19 # Parent 2681a04c2d3db25c4ae7040cefa26afacb491ed1 Not being able to compile locally gets on my nerves. diff -r 2681a04c2d3d -r f5bcc926bac4 src/haptic/darwin/SDL_syshaptic.c --- 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; }