src/haptic/SDL_haptic.c
branchgsoc2008_force_feedback
changeset 2561 3696b9ce8a37
parent 2560 2274406ba792
child 2645 269ba4f28d0e
--- a/src/haptic/SDL_haptic.c	Thu Jul 31 09:02:43 2008 +0000
+++ b/src/haptic/SDL_haptic.c	Thu Jul 31 09:45:27 2008 +0000
@@ -322,6 +322,7 @@
    /* Remove from the list */
    for (i = 0; SDL_haptics[i]; ++i) {
       if (haptic == SDL_haptics[i]) {
+         SDL_haptics[i] = NULL;
          SDL_memcpy(&SDL_haptics[i], &SDL_haptics[i + 1],
                (SDL_numhaptics - i) * sizeof(haptic));
          break;