Skip to content

Commit

Permalink
better "null" check
Browse files Browse the repository at this point in the history
  • Loading branch information
larsiusprime committed Feb 27, 2016
1 parent dc9a674 commit 08aa03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flixel/input/gamepad/FlxGamepadManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class FlxGamepadManager implements IFlxInputManager
}
else if (isForStick)
{
gamepad.handleAxisMove(i, newAxis[i], oldAxis[i] != null ? oldAxis[i] : 0);
gamepad.handleAxisMove(i, newAxis[i], (i > 0 && i < oldAxis.length) ? oldAxis[i] : 0);
}
}

Expand Down

0 comments on commit 08aa03d

Please sign in to comment.