Sam Lantinga 2 éve
szülő
commit
bf925b9ecd
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      src/joystick/SDL_gamecontroller.c

+ 1 - 2
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;
 }