# HG changeset patch # User Edgar Simo # Date 1217426901 0 # Node ID ee048e7bc9091c21f2bfd57670139bb791cdd50f # Parent f010e1d4e4312973a46efc924da53959ba1cfb0c Removed invalid type check. diff -r f010e1d4e431 -r ee048e7bc909 src/haptic/darwin/SDL_syshaptic.c --- a/src/haptic/darwin/SDL_syshaptic.c Wed Jul 30 11:54:08 2008 +0000 +++ b/src/haptic/darwin/SDL_syshaptic.c Wed Jul 30 14:08:21 2008 +0000 @@ -855,9 +855,9 @@ * Gets the effect type from the generic SDL haptic effect wrapper. */ CFUUIDRef -SDL_SYS_HapticEffectType(struct haptic_effect * effect) +SDL_SYS_HapticEffectType( Uint16 type ) { - switch (effect->effect.type) { + switch (type) { case SDL_HAPTIC_CONSTANT: return kFFEffectType_ConstantForce_ID; @@ -920,7 +920,7 @@ } /* Get the type. */ - type = SDL_SYS_HapticEffectType(effect); + type = SDL_SYS_HapticEffectType(effect->type); if (type == NULL) { goto err_hweffect; }