Skip to content

Commit 82dd130

Browse files
committed
Minor bugfix
1 parent 2e9c8ed commit 82dd130

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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 = 6;
9-
static constexpr uint8_t DSM_VERSION_PATCH = 16;
9+
static constexpr uint8_t DSM_VERSION_PATCH = 17;
1010

1111
static auto const DSM_VERSION =
1212
std::format("{}.{}.{}", DSM_VERSION_MAJOR, DSM_VERSION_MINOR, DSM_VERSION_PATCH);

src/dsm/sources/RoadNetwork.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,8 @@ namespace dsm {
835835
// targetId is the remaining part
836836
std::getline(pairStream, strTargetId);
837837

838-
auto const sourceId{std::stoul(strSourceId)};
839-
auto const targetId{std::stoul(strTargetId)};
838+
auto const sourceId{m_nodeMapping.at(strSourceId)};
839+
auto const targetId{m_nodeMapping.at(strTargetId)};
840840

841841
auto const forbiddenStreetId{sourceId * nNodes + targetId};
842842
pStreet->addForbiddenTurn(forbiddenStreetId);

0 commit comments

Comments
 (0)