diff options
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r-- | src/input/inputmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index b0aa18da5..dbe82d5da 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -841,11 +841,13 @@ void InputManager::executeAction(const InputActionT keyNum) restrict2 if (keyNum < InputAction::MOVE_UP || keyNum >= InputAction::TOTAL) return; - InputEvent evt(keyNum, mMask); ActionFuncPtr func = *(inputActionData[CAST_SIZE( keyNum)].action); if (func != nullptr) + { + InputEvent evt(keyNum, mMask); func(evt); + } } bool InputManager::executeChatCommand(const std::string &restrict cmd, |