Fixed missing j
authorSam Lantinga <slouken@libsdl.org>
Sat, 19 Apr 2014 10:17:36 -0700
changeset 8726 9a5a5808aa14
parent 8725 decbe9ca2d29
child 8728 c7174f961388
Fixed missing j
src/events/SDL_gesture.c
--- a/src/events/SDL_gesture.c	Sat Apr 19 12:48:45 2014 -0400
+++ b/src/events/SDL_gesture.c	Sat Apr 19 10:17:36 2014 -0700
@@ -149,7 +149,7 @@
     for (i = 0; i < SDL_numGestureTouches; i++) {
         SDL_GestureTouch* touch = &SDL_gestureTouch[i];
         for (j = 0; j < touch->numDollarTemplates; j++) {
-            if (touch->dollarTemplate[i].hash == gestureId) {
+            if (touch->dollarTemplate[j].hash == gestureId) {
                 return SaveTemplate(&touch->dollarTemplate[j], dst);
             }
         }