From 3d1735fcfd5e3158bef0ea82b47b265c464107bb Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 17 Jan 2007 21:14:17 +0000 Subject: (svn r8207) -Fix Remove the write-only attribute RoadStop::station --- src/station.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/station.cpp') diff --git a/src/station.cpp b/src/station.cpp index 2330df237..d3eff6bb1 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -348,16 +348,15 @@ void RoadStop::operator delete(void *p, int index) } /** Initializes a RoadStop */ -RoadStop::RoadStop(TileIndex tile, StationID index) : +RoadStop::RoadStop(TileIndex tile) : xy(tile), used(true), status(3), // stop is free num_vehicles(0), - station(index), next(NULL), prev(NULL) { - DEBUG(ms, cDebugCtorLevel, "I+%3d at %d[0x%x]", index, tile, tile); + DEBUG(ms, cDebugCtorLevel, "I+ at %d[0x%x]", tile, tile); } /** De-Initializes a RoadStops. This includes clearing all slots that vehicles might @@ -379,10 +378,9 @@ RoadStop::~RoadStop() if (next != NULL) next->prev = prev; used = false; - DEBUG(ms, cDebugCtorLevel , "I-%3d at %d[0x%x]", station, xy, xy); + DEBUG(ms, cDebugCtorLevel , "I- at %d[0x%x]", xy, xy); xy = INVALID_TILE; - station = INVALID_STATION; } -- cgit v1.2.3-54-g00ecf