Fix insufficient struct initialization in init_mouse_location()
See pull request #3252. This is the fix @Vultraz prefers to the PR.
(cherry-picked from commit 7fc6a23643
)
This commit is contained in:
parent
106d66009b
commit
2e3652f43f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue