(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:
truelight
2006-08-26 17:31:47 +00:00
parent 43f53ca4fd
commit 4adf627551
3 changed files with 10 additions and 3 deletions

View File

@@ -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) {