summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 14:43:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 14:43:51 +0300
commit44df89ce3e77f4f5e93555260f3eabab7621f77d (patch)
tree2fd22ed748ef07bae6a6058f139149430a95f5dc /src/input/inputmanager.cpp
parentc961f71619a09667931b2ea52171181b55f2047a (diff)
downloadmanaverse-44df89ce3e77f4f5e93555260f3eabab7621f77d.tar.gz
manaverse-44df89ce3e77f4f5e93555260f3eabab7621f77d.tar.bz2
manaverse-44df89ce3e77f4f5e93555260f3eabab7621f77d.tar.xz
manaverse-44df89ce3e77f4f5e93555260f3eabab7621f77d.zip
Fix chat commands initialisation in actions.
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r--src/input/inputmanager.cpp6
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;
}
}