Skip to content

Commit

Permalink
Fix insufficient struct initialization in init_mouse_location()
Browse files Browse the repository at this point in the history
See pull request #3252. This is the fix @Vultraz prefers to the PR.

(cherry-picked from commit 7fc6a23)
  • Loading branch information
jyrkive committed Oct 7, 2018
1 parent 106d660 commit 2e3652f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/core/event/handler.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 2e3652f

Please sign in to comment.