summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
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);