Potential fix for #706

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11787 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-10-28 03:40:21 +00:00
parent 65ad0b182c
commit 844cd1692c

View File

@ -581,7 +581,8 @@ void InputManager::dispatchInput(Input::InputType type, int deviceID,
return;
}
((Controller*)pk->getController())->action(action, abs(value));
Controller* controller = pk->getController();
if (controller != NULL) controller->action(action, abs(value));
}
// ... when in menus
else