mirror of https://github.com/AxioDL/metaforce.git
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:
parent
49836025f7
commit
dc8a0d0d88
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue