diff --git a/Source/Core/Common/Debug/Watches.cpp b/Source/Core/Common/Debug/Watches.cpp index c476665a41..beeab99086 100644 --- a/Source/Core/Common/Debug/Watches.cpp +++ b/Source/Core/Common/Debug/Watches.cpp @@ -43,9 +43,7 @@ const std::vector& Watches::GetWatches() const void Watches::UnsetWatch(u32 address) { - m_watches.erase(std::remove_if(m_watches.begin(), m_watches.end(), - [address](const auto& watch) { return watch.address == address; }), - m_watches.end()); + std::erase_if(m_watches, [address](const auto& watch) { return watch.address == address; }); } void Watches::UpdateWatch(std::size_t index, u32 address, std::string name)