summaryrefslogtreecommitdiff
path: root/depot.c
diff options
context:
space:
mode:
Diffstat (limited to 'depot.c')
-rw-r--r--depot.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/depot.c b/depot.c
index 6f9ca6168..6e30eb31a 100644
--- a/depot.c
+++ b/depot.c
@@ -79,14 +79,11 @@ Depot *AllocateDepot(void)
*/
void DestroyDepot(Depot *depot)
{
- DestinationID dest;
-
/* Clear the tile */
DoClearSquare(depot->xy);
/* Clear the depot from all order-lists */
- dest.depot = depot->index;
- RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, dest);
+ RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, depot->index);
/* Delete the depot-window */
DeleteWindowById(WC_VEHICLE_DEPOT, depot->xy);