From d4459c82055309d0c7aba039ec01b5e0fab2704c Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Sun, 26 Jan 2020 14:30:24 +0100 Subject: [PATCH] Fix a typo --- src/Input/FGJoystickInput.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input/FGJoystickInput.cxx b/src/Input/FGJoystickInput.cxx index 545e77a54..501bf3c01 100644 --- a/src/Input/FGJoystickInput.cxx +++ b/src/Input/FGJoystickInput.cxx @@ -355,7 +355,7 @@ void FGJoystickInput::updateJoystick(int index, FGJoystickInput::joystick* joy, // https://sourceforge.net/p/flightgear/codetickets/2185/ if (initializing[index]) { for (int j = 0; j < joy->naxes; j++) { - if (fabsf(axis_values[j] > 0.5f)) return; + if (fabsf(axis_values[j]) > 0.5f) return; } initializing[index] = false; }