소스 검색

Fix using wrong variable by mistake

Susko3 6 일 전
부모
커밋
765a2e9118
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/joystick/SDL_gamepad.c

+ 1 - 1
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) {