From 765a2e91184c172bebb92f0c732888003c54ca3a Mon Sep 17 00:00:00 2001 From: Susko3 Date: Mon, 15 Dec 2025 22:41:48 +0100 Subject: [PATCH] Fix using wrong variable by mistake --- src/joystick/SDL_gamepad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/SDL_gamepad.c b/src/joystick/SDL_gamepad.c index 7ac5862a3f..4f688028fd 100644 --- a/src/joystick/SDL_gamepad.c +++ b/src/joystick/SDL_gamepad.c @@ -2619,7 +2619,7 @@ static int SDL_PrivateAddGamepadMapping(const char *mappingString, SDL_GamepadMa } else { const char *hint_value = SDL_GetHint(hint); if (!hint_value) { - hint_value = SDL_getenv_unsafe(hint_value); + hint_value = SDL_getenv_unsafe(hint); } value = SDL_GetStringBoolean(hint_value, default_value); if (negate) {