diff --git a/source/Engine/InputManager.cpp b/source/Engine/InputManager.cpp index c7d7da0..0180eb6 100644 --- a/source/Engine/InputManager.cpp +++ b/source/Engine/InputManager.cpp @@ -810,7 +810,7 @@ PUBLIC STATIC bool InputManager::IsAnyActionReleased(unsigned playerID, unsigne return player.IsAnyInputReleased(device); } PUBLIC STATIC bool InputManager::IsPlayerUsingDevice(unsigned playerID, unsigned device) { - if (playerID >= Players.size() || device >= InputDevice_Controller) + if (playerID >= Players.size() || device >= InputDevice_MAX) return false; InputPlayer& player = Players[playerID];