From f88a9aab6a097c65960e978444f64f0ea8a022a1 Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 17 Jan 2005 10:46:39 +0000 Subject: [PATCH] Oops, don't forget that the axisnumber can actually be 0 --- src/Input/input.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Input/input.cxx b/src/Input/input.cxx index f0d5a192d..98432a6f0 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -476,11 +476,11 @@ FGInput::_init_joystick () const SGPropertyNode * num_node = axis_node->getChild("number"); size_t n_axis = axis_node->getIndex(); if (num_node != 0) { - n_axis = num_node->getIntValue(TGT_PLATFORM, 0); + n_axis = num_node->getIntValue(TGT_PLATFORM, -1); // Silently ignore platforms that are not specified within the // section - if (n_axis == 0) + if (n_axis < 0) continue; } -- 2.39.5