1
0
Fork 0

Fix e38c3c5: Added missing return statement

pull/12185/head
Kuhnovic 2024-02-26 22:29:35 +01:00 committed by Koen Bussemaker
parent 7b1e3cfeb5
commit 7590b469f7
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ public:
path_found = pf.FindPath(v);
Node *node = pf.GetBestNode();
if (attempt == 0 && !path_found) continue; // Try again with restricted search area.
if (!path_found || node == nullptr) GetRandomFollowUpTrackdir(v, src_tile, trackdir, true);
if (!path_found || node == nullptr) return GetRandomFollowUpTrackdir(v, src_tile, trackdir, true);
/* Return only the path within the current water region if an intermediate destination was returned. If not, cache the entire path
* to the final destination tile. The low-level pathfinder might actually prefer a different docking tile in a nearby region. Without