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