From 36e11d87c8d4a47e1a9cb068315052f5d376f0ad Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 19 Apr 2014 10:17:36 -0700 Subject: [PATCH] Fixed missing j --- src/events/SDL_gesture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/SDL_gesture.c b/src/events/SDL_gesture.c index afdb02827..ebe4fe290 100644 --- a/src/events/SDL_gesture.c +++ b/src/events/SDL_gesture.c @@ -149,7 +149,7 @@ int SDL_SaveDollarTemplate(SDL_GestureID gestureId, SDL_RWops *dst) 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); } }