diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/input/inputmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index 235d50da9..a74cea9e6 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -108,6 +108,9 @@ void InputManager::retrieve() { for (int i = 0; i < InputAction::TOTAL; i++) { + const std::string &cmd = inputActionData[i].chatCommand; + if (!cmd.empty()) + mChatMap[cmd] = i; #ifdef USE_SDL2 const std::string cf = std::string("sdl2") + inputActionData[i].configField; @@ -157,9 +160,6 @@ void InputManager::retrieve() } } } - const std::string &cmd = inputActionData[i].chatCommand; - if (!cmd.empty()) - mChatMap[cmd] = i; } } |