diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-23 14:43:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-23 14:43:51 +0300 |
commit | 44df89ce3e77f4f5e93555260f3eabab7621f77d (patch) | |
tree | 2fd22ed748ef07bae6a6058f139149430a95f5dc /src/input/inputmanager.cpp | |
parent | c961f71619a09667931b2ea52171181b55f2047a (diff) | |
download | mv-44df89ce3e77f4f5e93555260f3eabab7621f77d.tar.gz mv-44df89ce3e77f4f5e93555260f3eabab7621f77d.tar.bz2 mv-44df89ce3e77f4f5e93555260f3eabab7621f77d.tar.xz mv-44df89ce3e77f4f5e93555260f3eabab7621f77d.zip |
Fix chat commands initialisation in actions.
Diffstat (limited to 'src/input/inputmanager.cpp')
-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; } } |