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

Commit

Permalink
Fixed stupid mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 5, 2008
1 parent a93b6d8 commit 0de409c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/haptic/win32/SDL_syshaptic.c
Expand Up @@ -868,10 +868,10 @@ SDL_SYS_HapticFreeDIEFFECT( DIEFFECT * effect, int type )
/*
* 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;

Expand Down Expand Up @@ -925,7 +925,7 @@ SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect * effect,
HRESULT ret;

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

0 comments on commit 0de409c

Please sign in to comment.