mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Fix an another portion of Coverity warnings
This commit is contained in:
parent
57b501ad13
commit
987b231fdd
4 changed files with 13 additions and 13 deletions
|
@ -361,14 +361,10 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> v
|
|||
/// \brief Package mouse and mousewheel motions into a single event
|
||||
MouseMotionEvent InputWrapper::_packageMouseMotion(const SDL_Event &evt)
|
||||
{
|
||||
MouseMotionEvent pack_evt;
|
||||
MouseMotionEvent pack_evt = {};
|
||||
pack_evt.x = mMouseX;
|
||||
pack_evt.xrel = 0;
|
||||
pack_evt.y = mMouseY;
|
||||
pack_evt.yrel = 0;
|
||||
pack_evt.z = mMouseZ;
|
||||
pack_evt.zrel = 0;
|
||||
pack_evt.timestamp = 0;
|
||||
|
||||
if(evt.type == SDL_MOUSEMOTION)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue