Fix using wrong variable by mistake

This commit is contained in:
Susko3
2025-12-15 22:41:48 +01:00
committed by Sam Lantinga
parent 1260c10aab
commit 765a2e9118

View File

@@ -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) {