Removed invalid type check. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Wed, 30 Jul 2008 14:08:21 +0000
branchgsoc2008_force_feedback
changeset 2552ee048e7bc909
parent 2551 f010e1d4e431
child 2553 3f853f075bc0
Removed invalid type check.
src/haptic/darwin/SDL_syshaptic.c
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 11:54:08 2008 +0000
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 14:08:21 2008 +0000
     1.3 @@ -855,9 +855,9 @@
     1.4   * Gets the effect type from the generic SDL haptic effect wrapper.
     1.5   */
     1.6  CFUUIDRef
     1.7 -SDL_SYS_HapticEffectType(struct haptic_effect * effect)
     1.8 +SDL_SYS_HapticEffectType( Uint16 type )
     1.9  {
    1.10 -   switch (effect->effect.type) {
    1.11 +   switch (type) {
    1.12        case SDL_HAPTIC_CONSTANT:
    1.13           return kFFEffectType_ConstantForce_ID;
    1.14  
    1.15 @@ -920,7 +920,7 @@
    1.16     }
    1.17  
    1.18     /* Get the type. */
    1.19 -   type = SDL_SYS_HapticEffectType(effect);
    1.20 +   type = SDL_SYS_HapticEffectType(effect->type);
    1.21     if (type == NULL) {
    1.22        goto err_hweffect;
    1.23     }