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 828c228f4f
commit c064de21ce

View file

@ -833,7 +833,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;