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:
parent
9c311e2ca5
commit
7fc6a23643
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue