Merge "Fix iterator usage"

This commit is contained in:
TreeHugger Robot
2020-04-08 17:13:34 +00:00
committed by Android (Google) Code Review

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];