Commit bf925b9ecd11fc9a57f3abf1e16e3ca91f97a5c1

Sam Lantinga 2022-08-11T14:41:48

Fixed build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c
index 4d79d9b..037effe 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;
 }