Skip to content

Commit

Permalink
Fix InputManager::IsPlayerUsingDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
Lactozilla committed Jul 30, 2024
1 parent ec1fd2a commit b8a2774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Engine/InputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b8a2774

Please sign in to comment.