src/haptic/darwin/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2553 3f853f075bc0
parent 2552 ee048e7bc909
child 2554 2681a04c2d3d
--- a/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 14:08:21 2008 +0000
+++ b/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 14:09:10 2008 +0000
@@ -920,7 +920,7 @@
    }
 
    /* Get the type. */
-   type = SDL_SYS_HapticEffectType(effect->type);
+   type = SDL_SYS_HapticEffectType(base->type);
    if (type == NULL) {
       goto err_hweffect;
    }