From 6a6c3a0e9cde8c311c4cebf561bff8853866e74a Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 17 Jan 2005 10:48:35 +0000 Subject: [PATCH] ... and make sure the number can actually be negative. --- src/Input/input.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 98432a6f0..859641831 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -474,7 +474,7 @@ FGInput::_init_joystick () for (j = 0; j < (int)nb_axes; j++) { const SGPropertyNode * axis_node = axes[j]; const SGPropertyNode * num_node = axis_node->getChild("number"); - size_t n_axis = axis_node->getIndex(); + int n_axis = axis_node->getIndex(); if (num_node != 0) { n_axis = num_node->getIntValue(TGT_PLATFORM, -1); -- 2.39.5