Blindly attempt to fix a bug I can't reproduce

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12337 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2013-01-06 00:01:16 +00:00
parent e04a9b65a9
commit 63aea86164

View File

@ -148,7 +148,8 @@ void GamePadDevice::resetAxisDirection(const int axis,
Binding& bind = m_configuration->getBinding(n);
if(bind.getType() == Input::IT_STICKMOTION &&
bind.getId() == axis &&
bind.getDirection()== direction)
bind.getDirection()== direction &&
pk->getController() != NULL)
{
((PlayerController*)(pk->getController()))
->action((PlayerAction)n, 0);