2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 14:31:20 +00:00

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

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