From 9dd63b37fa522494796ee81e5ac5c06d72700628 Mon Sep 17 00:00:00 2001
From: Tim Felgentreff <timfelgentreff@gmail.com>
Date: Wed, 16 Feb 2022 08:42:51 +0100
Subject: [PATCH] Revert "Revert "don't return depots unconditionally""

This reverts commit 2616c95bf39478888bab16adf913f9c2433cab22.
---
 src/unit/unit_find.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/unit/unit_find.cpp b/src/unit/unit_find.cpp
index 3781da880..5cae1a2e8 100644
--- a/src/unit/unit_find.cpp
+++ b/src/unit/unit_find.cpp
@@ -208,10 +208,6 @@ class BestDepotFinder
 					return;
 				}
 
-				if (this->best_dist == INT_MAX) {
-					this->best_depot = dest;
-				}
-
 				if (distance >= this->best_dist) {
 					//if the depot's simple distance is greater or equal to the real travel distance of the currently-chosen depot, then it can never be closer than it, and we have no reason to actually calculate its real travel distance 
 					return;