From 290517ac60623f4d8c8628ced08cbb48023954aa Mon Sep 17 00:00:00 2001 From: asdqwe Date: Mon, 27 Jan 2025 21:52:26 -0300 Subject: [PATCH] Fix wrong parameter --- src/platforms/rcore_desktop_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index bc43ac040abc..c06c20bcee0a 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -1245,7 +1245,7 @@ const char *GetGamepadGUID(int gamepad) { static char buffer[MAX_JOYSTICKGUID_BUFFER_LENGTH] = { 0 }; - SDL_JoystickGUID joystickGUID = SDL_JoystickGetGUID(SDL_GameControllerGetJoystick(platform.gamepad[0])); + SDL_JoystickGUID joystickGUID = SDL_JoystickGetGUID(SDL_GameControllerGetJoystick(platform.gamepad[gamepad])); SDL_JoystickGetGUIDString(joystickGUID, buffer, MAX_JOYSTICKGUID_BUFFER_LENGTH -1);