fix over previous commit

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2009-04-26 00:37:38 +00:00
parent afcbe8cf82
commit 915a64b15f

View File

@@ -284,6 +284,7 @@ void GamePadDevice::resetAxisDirection(const int axis, Input::AxisDirection dire
bool GamePadDevice::hasBinding(Input::InputType type, const int id, const int value, const int player, PlayerAction* action /* out */)
{
if(m_prevAxisDirections == NULL) return false; // device not open
if(id >= m_axis_count) return false; // this gamepad doesn't even have that many axes
if(type == Input::IT_STICKMOTION)
{