Sfoglia il codice sorgente

Fix wrong parameter

pull/4733/head
asdqwe 2 mesi fa
parent
commit
d0b275d0e0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/platforms/rcore_desktop_sdl.c

+ 1
- 1
src/platforms/rcore_desktop_sdl.c Vedi File

@ -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[mi">0]));
SDL_JoystickGUID joystickGUID = SDL_JoystickGetGUID(SDL_GameControllerGetJoystick(platform.gamepad[n">gamepad]));
SDL_JoystickGetGUIDString(joystickGUID, buffer, MAX_JOYSTICKGUID_BUFFER_LENGTH -1);

Caricamento…
Annulla
Salva