From 44df89ce3e77f4f5e93555260f3eabab7621f77d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Aug 2014 14:43:51 +0300 Subject: Fix chat commands initialisation in actions. --- src/input/inputmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input') 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; } } -- cgit v1.2.3-70-g09d2