diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 72f333685..667fe1b52 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); }