From ac347810ca7a5fadc5d4f9729006e65350cc57c5 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Wed, 14 Apr 2021 08:36:17 +0400 Subject: [PATCH] Fix uninitialized field in the mouse event --- components/sdlutil/sdlinputwrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/sdlutil/sdlinputwrapper.cpp b/components/sdlutil/sdlinputwrapper.cpp index ca223ae3b8..57b211e97e 100644 --- a/components/sdlutil/sdlinputwrapper.cpp +++ b/components/sdlutil/sdlinputwrapper.cpp @@ -368,6 +368,7 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr v pack_evt.yrel = 0; pack_evt.z = mMouseZ; pack_evt.zrel = 0; + pack_evt.timestamp = 0; if(evt.type == SDL_MOUSEMOTION) {