src/haptic/darwin/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2553 3f853f075bc0
parent 2552 ee048e7bc909
child 2554 2681a04c2d3d
equal deleted inserted replaced
2552:ee048e7bc909 2553:3f853f075bc0
   918       SDL_OutOfMemory();
   918       SDL_OutOfMemory();
   919       goto err_hweffect;
   919       goto err_hweffect;
   920    }
   920    }
   921 
   921 
   922    /* Get the type. */
   922    /* Get the type. */
   923    type = SDL_SYS_HapticEffectType(effect->type);
   923    type = SDL_SYS_HapticEffectType(base->type);
   924    if (type == NULL) {
   924    if (type == NULL) {
   925       goto err_hweffect;
   925       goto err_hweffect;
   926    }
   926    }
   927 
   927 
   928    /* Get the effect. */
   928    /* Get the effect. */