CRelayTracker: Simplify RemoveRelay()

We can make this significantly nicer to read by making use of C++20's
consistent container erasure functions.
This commit is contained in:
Lioncash 2020-05-08 01:16:20 -04:00
parent 49836025f7
commit dc8a0d0d88
1 changed files with 1 additions and 1 deletions

View File

@ -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) {