diff options
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r-- | src/input/inputmanager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index 94cac4b05..48efe4719 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -971,11 +971,13 @@ InputActionT InputManager::getActionByKey(const SDL_Event &event) const return InputAction::NO_VALUE; } -void InputManager::addChatCommands(std::list<std::string> &arr) +void InputManager::addChatCommands(std::list<std::string> &restrict arr) + restrict { - for (int i = 0; i < static_cast<int>(InputAction::TOTAL); i++) + const int sz = static_cast<int>(InputAction::TOTAL); + for (int i = 0; i < sz; i++) { - const InputActionData &ad = inputActionData[i]; + const InputActionData &restrict ad = inputActionData[i]; std::string cmd = ad.chatCommand; if (!cmd.empty()) { |