(svn r8207) -Fix
Remove the write-only attribute RoadStop::station
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user