src/haptic/linux/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2515 030fc4375e63
parent 2513 55fd9103a330
child 2517 37c13c12c878
--- a/src/haptic/linux/SDL_syshaptic.c	Thu Jul 10 16:42:43 2008 +0000
+++ b/src/haptic/linux/SDL_syshaptic.c	Thu Jul 10 17:16:11 2008 +0000
@@ -260,6 +260,7 @@
       SDL_SetError("Haptic: Unable to query device memory: %s", strerror(errno));
       goto open_err;
    }
+   haptic->nplaying = haptic->neffects; /* Linux makes no distinction. */
    haptic->effects = (struct haptic_effect *)
          SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects);
    if (haptic->effects == NULL) {