From: <au...@us...> - 2009-04-26 00:37:38
|
Revision: 3435 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=3435&view=rev Author: auria Date: 2009-04-26 00:37:38 +0000 (Sun, 26 Apr 2009) Log Message: ----------- fix over previous commit Modified Paths: -------------- main/branches/irrlicht/src/input/input_device.cpp Modified: main/branches/irrlicht/src/input/input_device.cpp =================================================================== --- main/branches/irrlicht/src/input/input_device.cpp 2009-04-26 00:32:33 UTC (rev 3434) +++ main/branches/irrlicht/src/input/input_device.cpp 2009-04-26 00:37:38 UTC (rev 3435) @@ -284,6 +284,7 @@ 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) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |