From 6a38a3f5df177cdf85bd64b1b873f524d5b0629c Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 18 May 2018 09:04:39 +0100 Subject: Change: Don't leave ship depot with no orders. --- src/ship_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index e606afc0c..16b93e48b 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -330,6 +330,9 @@ static bool CheckShipLeaveDepot(Ship *v) return true; } + /* Don't leave depot if no destination set */ + if (v->dest_tile == 0) return true; + TileIndex tile = v->tile; Axis axis = GetShipDepotAxis(tile); -- cgit v1.2.3-70-g09d2