Fix off-by-one in AssembleTuningPath

This commit is contained in:
Jon Evans 2021-07-03 14:37:52 -04:00
parent 3c59e452d6
commit 252bf76452
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ const ITEM_SET TOPOLOGY::AssembleTuningPath( ITEM* aStart, SOLID** aStartPad, SO
aLine.Remove( start, clip - 1 );
// Now connect the dots
aLine.Insert( aForward ? 0 : aLine.PointCount(), aPad->GetPosition() );
aLine.Insert( aForward ? 0 : aLine.PointCount() - 1, aPad->GetPosition() );
};
auto processPad =