Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed invalid type check.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Jul 30, 2008
1 parent e1468c5 commit c527772
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -855,9 +855,9 @@ SDL_SYS_HapticFreeFFEFFECT( FFEFFECT * effect, int type )
* 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;

Expand Down Expand Up @@ -920,7 +920,7 @@ SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect * effect,
}

/* Get the type. */
type = SDL_SYS_HapticEffectType(effect);
type = SDL_SYS_HapticEffectType(effect->type);
if (type == NULL) {
goto err_hweffect;
}
Expand Down

0 comments on commit c527772

Please sign in to comment.