Fix broken refactor from 0e65fe5

'auto' here was utilizing a copy constructor to avoid assigning a new
value to the underlying shared pointer
This commit is contained in:
Seth Hillbrand 2021-12-07 12:38:05 -08:00
parent c613f5e2f1
commit fbdb2bd91f
1 changed files with 2 additions and 2 deletions

View File

@ -218,8 +218,8 @@ public:
for( size_t i = 0; i < triangles.size(); i += 3 )
{
CN_ANCHOR_PTR& src = anchors[triangles[i]];
CN_ANCHOR_PTR& dst = anchors[triangles[i + 1]];
CN_ANCHOR_PTR src = anchors[triangles[i]];
CN_ANCHOR_PTR dst = anchors[triangles[i + 1]];
mstEdges.emplace_back( src, dst, src->Dist( *dst ) );
src = anchors[triangles[i + 1]];