summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ship_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 0f3f7b74d..6d6f8415c 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -759,6 +759,10 @@ static void ShipController(Ship *v)
if ((v->vehstatus & VS_HIDDEN) == 0) v->Vehicle::UpdateViewport(true);
return;
}
+
+ /* Ship is back on the bridge head, we need to comsume its path
+ * cache entry here as we didn't have to choose a ship track. */
+ if (!v->path.empty()) v->path.pop_front();
}
/* update image of ship, as well as delta XY */