1
0
Fork 0

... and make sure the number can actually be negative.

This commit is contained in:
ehofman 2005-01-17 10:48:35 +00:00
parent f88a9aab6a
commit 6a6c3a0e9c

View 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);