Skip to content

Commit

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

void Intersection::removeAgent(Id agentId) {
assert((void("Trying to remove an agent not on the node"),
std::erase_if(m_agents, [agentId](const auto& p) {
return p.second == agentId;
}) == 1));
}
void Intersection::removeAgent(Id agentId) { m_agents.erase(agentId); }

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

0 comments on commit 6fbc9f2

Please sign in to comment.