From 45205a4284ca3c093058b6ef633c9f9083c4836d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 9 Jan 2024 19:57:30 +0000 Subject: [PATCH] Clear ship path cache when performing collision avoidance --- src/ship_cmd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 7ba619184d..fff2825f43 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -791,6 +791,7 @@ static void CheckDistanceBetweenShips(TileIndex tile, Ship *v, TrackBits tracks, if (bits != INVALID_TRACK_BIT && bits != TRACK_BIT_NONE) { *track_old = track; + v->cached_path.clear(); break; } }