src/haptic/linux/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2503 84a634009a83
parent 2502 5356ca0c36a3
child 2510 e6ad7e678fca
--- a/src/haptic/linux/SDL_syshaptic.c	Mon Jul 07 16:58:16 2008 +0000
+++ b/src/haptic/linux/SDL_syshaptic.c	Mon Jul 07 17:01:14 2008 +0000
@@ -451,13 +451,13 @@
          condition = &src->condition;
 
          /* Header */
-         if (dest->type == SDL_HAPTIC_SPRING)
+         if (condition->type == SDL_HAPTIC_SPRING)
             dest->type = FF_SPRING;
-         else if (dest->type == SDL_HAPTIC_DAMPER)
+         else if (condition->type == SDL_HAPTIC_DAMPER)
             dest->type = FF_DAMPER;
-         else if (dest->type == SDL_HAPTIC_INERTIA)
+         else if (condition->type == SDL_HAPTIC_INERTIA)
             dest->type = FF_INERTIA;
-         else if (dest->type == SDL_HAPTIC_FRICTION)
+         else if (condition->type == SDL_HAPTIC_FRICTION)
             dest->type = FF_FRICTION;
          dest->direction = 0; /* Handled by the condition-specifics. */