aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sky/autoroute.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/sky/autoroute.cpp b/sky/autoroute.cpp
index 7367f0684d..f78bc0a449 100644
--- a/sky/autoroute.cpp
+++ b/sky/autoroute.cpp
@@ -135,7 +135,6 @@ bool SkyAutoRoute::calcWalkGrid(uint8 startX, uint8 startY, uint8 destX, uint8 d
uint16 *walkDest = _routeGrid + (destY + 1) * ROUTE_GRID_WIDTH + destX + 1;
uint16 *walkStart = _routeGrid + (startY + 1) * ROUTE_GRID_WIDTH + startX + 1;
*walkStart = 1;
- uint16 *walkPos = walkStart;
// if we are on the edge, move diagonally from start
if (roiY < ROUTE_GRID_HEIGHT-3)