(svn r8207) -Fix

Remove the write-only attribute RoadStop::station
This commit is contained in:
tron
2007-01-17 21:14:17 +00:00
parent 27dde23409
commit 3d1735fcfd
4 changed files with 11 additions and 17 deletions

View File

@@ -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;
}