Skip to content

Commit

Permalink
Bugfix for Bugfix for Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Grufoony committed Nov 15, 2024
1 parent 6fbc9f2 commit 430d94e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dsm/headers/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ namespace dsm {
++m_agentCounter;
}

void Intersection::removeAgent(Id agentId) { m_agents.erase(agentId); }
void Intersection::removeAgent(Id agentId) {
std::erase_if(m_agents,
[agentId](const auto& pair) { return pair.second == agentId; });
}

Size Intersection::agentCounter() {
Size copy{m_agentCounter};
Expand Down

0 comments on commit 430d94e

Please sign in to comment.