diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 72f3336851..667fe1b528 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -139,7 +139,7 @@ void CreateProfile(std::string name) { } void DeleteProfile(int index) { - values.input_profiles(values.input_profiles.begin() + index); + values.input_profiles.erase(values.input_profiles.begin() + index); LoadProfile(0); }