Fix insufficient struct initialization in init_mouse_location()

See pull request #3252. This is the fix @Vultraz prefers to the PR.
This commit is contained in:
Jyrki Vesterinen 2018-06-28 06:35:09 +03:00
parent 9c311e2ca5
commit 7fc6a23643

View file

@ -776,7 +776,7 @@ void init_mouse_location()
{
point mouse = get_mouse_position();
SDL_Event event;
SDL_Event event{};
event.type = SDL_MOUSEMOTION;
event.motion.type = SDL_MOUSEMOTION;
event.motion.x = mouse.x;