diff src/haptic/linux/SDL_syshaptic.c @ 2503:84a634009a83 gsoc2008_force_feedback

Another important typo mistake.
author Edgar Simo <bobbens@gmail.com>
date Mon, 07 Jul 2008 17:01:14 +0000
parents 5356ca0c36a3
children e6ad7e678fca
line wrap: on
line diff
--- 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. */