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

Sam Lantinga 2017-08-14 16:09:44 -07:00
parent e9d4e31044
commit 96e15fa7f6
1 changed files with 1 additions and 1 deletions

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;
}