diff --git a/src/client/inputhandler.cpp b/src/client/inputhandler.cpp index 7152e4b94..64a377139 100644 --- a/src/client/inputhandler.cpp +++ b/src/client/inputhandler.cpp @@ -77,10 +77,10 @@ void MyEventReceiver::reloadKeybindings() keysListenedFor.clear(); for (int i = 0; i < KeyType::INTERNAL_ENUM_COUNT; i++) { GameKeyType game_key = static_cast(i); + keybindings[i].emplace_back(game_key); for (auto key: keybindings[i]) { listenForKey(key, game_key); } - listenForKey(game_key, game_key); } }