From dc8a0d0d88b87d114dc58d8a360c4ab97a989892 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 8 May 2020 01:16:20 -0400 Subject: [PATCH] CRelayTracker: Simplify RemoveRelay() We can make this significantly nicer to read by making use of C++20's consistent container erasure functions. --- Runtime/CRelayTracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/CRelayTracker.cpp b/Runtime/CRelayTracker.cpp index 20f358742..9428af090 100644 --- a/Runtime/CRelayTracker.cpp +++ b/Runtime/CRelayTracker.cpp @@ -42,7 +42,7 @@ void CRelayTracker::RemoveRelay(TEditorId id) { return; } - x0_relayStates.erase(std::remove(x0_relayStates.begin(), x0_relayStates.end(), id), x0_relayStates.end()); + std::erase(x0_relayStates, id); } void CRelayTracker::SendMsgs(TAreaId areaId, CStateManager& stateMgr) {