Fix iterator usage

We change to reference the end() of the correct iterator.

Test: TreeHugger
Change-Id: I380d41a916184c90c3a38848b0a039ea56006f47
This commit is contained in:
Greg Kaiser
2020-04-08 07:13:00 -07:00
parent 96980318aa
commit ef05f714c4

View File

@@ -106,7 +106,7 @@ static int getGamepadkeyCode(int32_t androidKeyCode) {
static const GamepadAxis* getGamepadAxis(int32_t androidAxisCode) {
std::unordered_map<int32_t, int>::iterator it =
gamepadAndroidAxisToIndexMap.find(androidAxisCode);
if (it == gamepadAndroidToLinuxKeyMap.end()) {
if (it == gamepadAndroidAxisToIndexMap.end()) {
return nullptr;
}
return &GAMEPAD_AXES[it->second];