From 1114c49165125deefadf25b5c448e246cec74a45 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sat, 29 May 2010 16:32:38 +0200 Subject: [PATCH] Fix an uninitialized value valgrind warning. --- src/Input/FGMouseInput.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Input/FGMouseInput.cxx b/src/Input/FGMouseInput.cxx index c0b7e3f87..16bb7883e 100644 --- a/src/Input/FGMouseInput.cxx +++ b/src/Input/FGMouseInput.cxx @@ -25,7 +25,7 @@ #include "FGMouseInput.hxx" -void ActivePickCallbacks::init( int b, const osgGA::GUIEventAdapter* ea ) +void ActivePickCallbacks::init( int b, const osgGA::GUIEventAdapter* ea ) { // Get the list of hit callbacks. Take the first callback that // accepts the mouse button press and ignore the rest of them @@ -44,7 +44,7 @@ void ActivePickCallbacks::init( int b, const osgGA::GUIEventAdapter* ea ) } } -void ActivePickCallbacks::update( double dt ) +void ActivePickCallbacks::update( double dt ) { // handle repeatable mouse press events for( iterator mi = begin(); mi != end(); ++mi ) { @@ -202,6 +202,7 @@ FGMouseInput::mouse::mouse () save_y(-1), nModes(1), current_mode(0), + timeout(0), modes(NULL) { }