From dacbfc8810e22ff8210409db3abcc1cddc9d154c Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 13 Oct 2023 12:00:55 -0400 Subject: [PATCH] Fix another missing array index --- src/rcore_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore_drm.c b/src/rcore_drm.c index 5ff736d81..6bfeada62 100644 --- a/src/rcore_drm.c +++ b/src/rcore_drm.c @@ -1572,7 +1572,7 @@ static void PollDrmJoystickEvents() if (!CORE.Input.Gamepad.ready[i]) continue; - while (read(platform.gamepadStreamFd, &ev, sizeof(ev)) > 0) + while (read(platform.gamepadStreamFd[i], &ev, sizeof(ev)) > 0) { switch(ev.type) {