Fixed Windows build due to an implicit memcpy generated by the optimizer

This commit is contained in:
Sam Lantinga 2017-08-14 16:09:44 -07:00
parent e9d4e31044
commit 96e15fa7f6

View File

@ -481,7 +481,7 @@ int SDL_GestureDelTouch(SDL_TouchID touchId)
SDL_zero(SDL_gestureTouch[i]);
SDL_numGestureTouches--;
SDL_gestureTouch[i] = SDL_gestureTouch[SDL_numGestureTouches];
SDL_memcpy(&SDL_gestureTouch[i], &SDL_gestureTouch[SDL_numGestureTouches], sizeof(SDL_gestureTouch[i]));
return 0;
}