diff --git a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp index 7b21cf78e0..56bab1a981 100644 --- a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp +++ b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp @@ -144,8 +144,7 @@ void RemoveSpuriousTriggerCombinations( }); }; - detections->erase(std::remove_if(detections->begin(), detections->end(), is_spurious), - detections->end()); + std::erase_if(*detections, is_spurious); } } // namespace ciface::MappingCommon