summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-01-17 21:14:17 +0000
committertron <tron@openttd.org>2007-01-17 21:14:17 +0000
commit3d1735fcfd5e3158bef0ea82b47b265c464107bb (patch)
treeaf04f21cea303100c3a5905accfde29ee18ee33a /src/station.cpp
parent27dde23409f9955a99fd904d2b9944380124a7e2 (diff)
downloadopenttd-3d1735fcfd5e3158bef0ea82b47b265c464107bb.tar.xz
(svn r8207) -Fix
Remove the write-only attribute RoadStop::station
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp8
1 files changed, 3 insertions, 5 deletions
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;
}