Skip to content

Commit b2783f2

Browse files
committed
Bugfix
1 parent 8faba1d commit b2783f2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/dsm/dsm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
static constexpr uint8_t DSM_VERSION_MAJOR = 2;
88
static constexpr uint8_t DSM_VERSION_MINOR = 1;
9-
static constexpr uint8_t DSM_VERSION_PATCH = 2;
9+
static constexpr uint8_t DSM_VERSION_PATCH = 3;
1010

1111
#define DSM_VERSION \
1212
std::format("{}.{}.{}", DSM_VERSION_MAJOR, DSM_VERSION_MINOR, DSM_VERSION_PATCH)

src/dsm/headers/Dynamics.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,10 +1128,7 @@ namespace dsm {
11281128
template <typename Delay>
11291129
requires(is_numeric_v<Delay>)
11301130
void Dynamics<Delay>::removeAgent(Size agentId) {
1131-
assert((void("Trying to remove an agent that does not exist"),
1132-
std::erase_if(m_agents, [agentId](const auto& agent) {
1133-
return agent.first == agentId;
1134-
}) == 1));
1131+
m_agents.erase(agentId);
11351132
}
11361133

11371134
template <typename Delay>

0 commit comments

Comments
 (0)