]> git.mxchange.org Git - flightgear.git/commitdiff
... and make sure the number can actually be negative.
authorehofman <ehofman>
Mon, 17 Jan 2005 10:48:35 +0000 (10:48 +0000)
committerehofman <ehofman>
Mon, 17 Jan 2005 10:48:35 +0000 (10:48 +0000)
src/Input/input.cxx

index 98432a6f01803e7b43d3737015601296a27927e1..85964183128c0c5eca794aa64ce34cd893b0d5e1 100644 (file)
@@ -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);