Skip to content

Commit 19c45ee

Browse files
Олег ГурылевОлег Гурылев
authored andcommitted
Минификс для очистки старого маршрута
1 parent e7c7a07 commit 19c45ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Northrend/ViewModels/MainWindowViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ private void PreparePorts(INodesMap nodes)
121121

122122
private void PrepareRoutes(IRouteByNodes route)
123123
{
124+
Route.Clear();
125+
124126
foreach (var routePoint in route.CellsPositionsOnMap)
125127
{
126128
var cell = Cells.FirstOrDefault(x => x.X/5 == routePoint.i && x.Y/5 == routePoint.j);

0 commit comments

Comments
 (0)