Clear ship path cache when performing collision avoidance

This commit is contained in:
Jonathan G Rennison
2024-01-09 19:57:30 +00:00
parent ced7bc54b7
commit 45205a4284

View File

@@ -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;
}
}