1
0
Fork 0

Change: Don't leave ship depot with no orders.

pull/7070/head
Peter Nelson 2018-05-18 09:04:39 +01:00 committed by Charles Pigott
parent 29b6b74ee1
commit 6a38a3f5df
1 changed files with 3 additions and 0 deletions

View File

@ -330,6 +330,9 @@ static bool CheckShipLeaveDepot(Ship *v)
return true; return true;
} }
/* Don't leave depot if no destination set */
if (v->dest_tile == 0) return true;
TileIndex tile = v->tile; TileIndex tile = v->tile;
Axis axis = GetShipDepotAxis(tile); Axis axis = GetShipDepotAxis(tile);