(svn r6146) -Fix: MSVC doesn't know how to cast to an union.. so fix it via an indirect (and btw the old) way
This commit is contained in:
5
depot.c
5
depot.c
@@ -79,11 +79,14 @@ Depot *AllocateDepot(void)
|
||||
*/
|
||||
void DestroyDepot(Depot *depot)
|
||||
{
|
||||
DestinationID dest;
|
||||
|
||||
/* Clear the tile */
|
||||
DoClearSquare(depot->xy);
|
||||
|
||||
/* Clear the depot from all order-lists */
|
||||
RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, (DestinationID)depot->index);
|
||||
dest.depot = depot->index;
|
||||
RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, dest);
|
||||
|
||||
/* Delete the depot-window */
|
||||
DeleteWindowById(WC_VEHICLE_DEPOT, depot->xy);
|
||||
|
||||
Reference in New Issue
Block a user