From bf925b9ecd11fc9a57f3abf1e16e3ca91f97a5c1 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 11 Aug 2022 14:41:48 -0700 Subject: [PATCH] Fixed build --- src/joystick/SDL_gamecontroller.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index 4d79d9bf1..037effe98 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -1614,9 +1614,8 @@ SDL_GameControllerMappingForIndex(int mapping_index) return CreateMappingString(mapping, mapping->guid); } --mapping_index; - } else { - SDL_SetError("Mapping not available"); } + SDL_SetError("Mapping not available"); return NULL; }