mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user