src/events/SDL_gesture.c
changeset 8726 9a5a5808aa14
parent 8705 fee2f7e242a1
child 8775 047537a5a114
     1.1 --- a/src/events/SDL_gesture.c	Sat Apr 19 12:48:45 2014 -0400
     1.2 +++ b/src/events/SDL_gesture.c	Sat Apr 19 10:17:36 2014 -0700
     1.3 @@ -149,7 +149,7 @@
     1.4      for (i = 0; i < SDL_numGestureTouches; i++) {
     1.5          SDL_GestureTouch* touch = &SDL_gestureTouch[i];
     1.6          for (j = 0; j < touch->numDollarTemplates; j++) {
     1.7 -            if (touch->dollarTemplate[i].hash == gestureId) {
     1.8 +            if (touch->dollarTemplate[j].hash == gestureId) {
     1.9                  return SaveTemplate(&touch->dollarTemplate[j], dst);
    1.10              }
    1.11          }