diff --git a/app/streaming/input/gamepad.cpp b/app/streaming/input/gamepad.cpp index b649971b..d4e4c03f 100644 --- a/app/streaming/input/gamepad.cpp +++ b/app/streaming/input/gamepad.cpp @@ -965,7 +965,7 @@ void SdlInputHandler::setAdaptiveTriggers(uint16_t controllerNumber, DualSenseOu #if SDL_VERSION_ATLEAST(2, 0, 16) // Make sure the controller number is within our supported count - if (controllerNumber <= MAX_GAMEPADS && + if (controllerNumber < MAX_GAMEPADS && // and we have a valid controller m_GamepadState[controllerNumber].controller != nullptr && // and it's a PS5 controller