diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp index a73046291..e6fee3046 100644 --- a/source/build/src/sdlayer.cpp +++ b/source/build/src/sdlayer.cpp @@ -855,13 +855,13 @@ static void LoadSDLControllerDB() return; } - int i = SDL_GameControllerAddMappingsFromRW(rwops, 0); + int i = SDL_GameControllerAddMappingsFromRW(rwops, 1); + if (i == -1) buildprintf("Failed loading game controller database: %s\n", SDL_GetError()); else buildputs("Loaded game controller database\n"); - SDL_free(rwops); free(dbuf); } #endif