Fixed build

This commit is contained in:
Sam Lantinga 2022-08-11 14:41:48 -07:00
parent 24f97dd700
commit bf925b9ecd

View File

@ -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;
}