src/haptic/windows/SDL_syshaptic.c
changeset 7849 99607295ac82
parent 7848 4f77ff668405
child 7850 ad4dc7a15ce0
--- a/src/haptic/windows/SDL_syshaptic.c	Sun Oct 20 16:01:10 2013 -0400
+++ b/src/haptic/windows/SDL_syshaptic.c	Sun Oct 20 16:02:24 2013 -0400
@@ -1564,9 +1564,8 @@
         SDL_Delay(50);
         SDL_LockMutex(hwdata->mutex);
         /* If we're currently running and need to stop... */
-        const Uint32 stopTicks = hwdata->stopTicks;
-        if (stopTicks) {
-            if ((stopTicks != SDL_HAPTIC_INFINITY) && (stopTicks < SDL_GetTicks())) {
+        if (hwdata->stopTicks) {
+            if ((hwdata->stopTicks != SDL_HAPTIC_INFINITY) && (hwdata->stopTicks < SDL_GetTicks())) {
                 XINPUT_VIBRATION vibration = { 0, 0 };
                 hwdata->stopTicks = 0;
                 XINPUTSETSTATE(hwdata->userid, &vibration);