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 | |
parent | c961f71619a09667931b2ea52171181b55f2047a (diff) | |
download | manaplus-44df89ce3e77f4f5e93555260f3eabab7621f77d.tar.gz manaplus-44df89ce3e77f4f5e93555260f3eabab7621f77d.tar.bz2 manaplus-44df89ce3e77f4f5e93555260f3eabab7621f77d.tar.xz manaplus-44df89ce3e77f4f5e93555260f3eabab7621f77d.zip |
Fix chat commands initialisation in actions.
-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; } } |