From: david Date: Mon, 25 Mar 2002 14:30:29 +0000 (+0000) Subject: Fixed a small typo. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf7f245b323dc654c121c84f51c8998b8f132504;p=flightgear.git Fixed a small typo. --- 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); } }