From cf7f245b323dc654c121c84f51c8998b8f132504 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 25 Mar 2002 14:30:29 +0000 Subject: [PATCH] Fixed a small typo. --- src/Input/input.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 4e82dec2a..349226a03 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -668,10 +668,12 @@ FGInput::_update_mouse () _current_mouse_mode = fgGetInt("/input/mice/mouse[0]/mode"); if (_current_mouse_mode != _last_mouse_mode) { _last_mouse_mode = _current_mouse_mode; - if (mode >= 0 && mode < _mouse_bindings[0].nModes) { - glutSetCursor(_mouse_bindings[0].cursors[mode]); + if (_current_mouse_mode >= 0 + && _current_mouse_mode < _mouse_bindings[0].nModes) { + glutSetCursor(_mouse_bindings[0].cursors[_current_mouse_mode]); } else { - SG_LOG(SG_INPUT, SG_DEBUG, "Mouse mode " << mode << " out of range"); + SG_LOG(SG_INPUT, SG_DEBUG, "Mouse mode " + << _current_mouse_mode << " out of range"); glutSetCursor(GLUT_CURSOR_INHERIT); } } -- 2.39.5