diff options
author | truelight <truelight@openttd.org> | 2006-08-26 17:31:47 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-26 17:31:47 +0000 |
commit | 6846e38095f9f47bd80d9f652c705277c8597366 (patch) | |
tree | 09d9a6f67e95f26706a0b4e404891623c5c71a12 /station_cmd.c | |
parent | c6f4f954388142a1d5b85993be5574710865ac98 (diff) | |
download | openttd-6846e38095f9f47bd80d9f652c705277c8597366.tar.xz |
(svn r6146) -Fix: MSVC doesn't know how to cast to an union.. so fix it via an indirect (and btw the old) way
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c index 6e7feda73..135081c6d 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2399,6 +2399,7 @@ static uint32 VehicleEnter_Station(Vehicle *v, TileIndex tile, int x, int y) */ static void DeleteStation(Station *st) { + DestinationID dest; StationID index; Vehicle *v; st->xy = 0; @@ -2412,7 +2413,8 @@ static void DeleteStation(Station *st) DeleteWindowById(WC_STATION_VIEW, index); /* Now delete all orders that go to the station */ - RemoveOrderFromAllVehicles(OT_GOTO_STATION, (DestinationID)index); + dest.station = index; + RemoveOrderFromAllVehicles(OT_GOTO_STATION, dest); //And do the same with aircraft that have the station as a hangar-stop FOR_ALL_VEHICLES(v) { |