mirror of https://github.com/encounter/SDL.git
Fixed missing j
This commit is contained in:
parent
0ba3a54ac3
commit
36e11d87c8
|
@ -149,7 +149,7 @@ int SDL_SaveDollarTemplate(SDL_GestureID gestureId, SDL_RWops *dst)
|
||||||
for (i = 0; i < SDL_numGestureTouches; i++) {
|
for (i = 0; i < SDL_numGestureTouches; i++) {
|
||||||
SDL_GestureTouch* touch = &SDL_gestureTouch[i];
|
SDL_GestureTouch* touch = &SDL_gestureTouch[i];
|
||||||
for (j = 0; j < touch->numDollarTemplates; j++) {
|
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);
|
return SaveTemplate(&touch->dollarTemplate[j], dst);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue