# HG changeset patch # User Edgar Simo # Date 1217934539 0 # Node ID 5b8f8151e66df89e36647817ab25cd2ebd8b96e5 # Parent 79e3b1a2c590ea1a1e2682417196fbeecd12a128 Fixed stupid mistake. diff -r 79e3b1a2c590 -r 5b8f8151e66d src/haptic/win32/SDL_syshaptic.c --- a/src/haptic/win32/SDL_syshaptic.c Tue Aug 05 11:04:30 2008 +0000 +++ b/src/haptic/win32/SDL_syshaptic.c Tue Aug 05 11:08:59 2008 +0000 @@ -868,10 +868,10 @@ /* * Gets the effect type from the generic SDL haptic effect wrapper. */ -REFGUID -SDL_SYS_HapticEffectType(struct haptic_effect * effect) +static REFGUID +SDL_SYS_HapticEffectType(SDL_HapticEffect * effect) { - switch (effect->effect.type) { + switch (effect->type) { case SDL_HAPTIC_CONSTANT: return &GUID_ConstantForce; @@ -925,7 +925,7 @@ HRESULT ret; /* Get the type. */ - REFGUID type = SDL_SYS_HapticEffectType(effect); + REFGUID type = SDL_SYS_HapticEffectType(base); if (type == NULL) { goto err_hweffect; }