From b8a27748b0bbddb01c5a06c4d8cdc0f1513e9b9b Mon Sep 17 00:00:00 2001 From: Lactozilla Date: Tue, 30 Jul 2024 01:09:54 -0300 Subject: [PATCH] Fix InputManager::IsPlayerUsingDevice --- source/Engine/InputManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];