(svn r4772) - Newstations: when allocating a custom station (via action 0x03) check if the station has already been allocated. (Fixes duplicate waypoints in newstatsw in non-temperate climate)

This commit is contained in:
2006-05-07 12:58:45 +00:00
parent 8bd664f81f
commit 5c3887cdb4
2 changed files with 6 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ typedef struct StationSpec {
uint32 grfid; ///< ID of GRF file station belongs to.
int localidx; ///< Index within GRF file of station.
bool allocated; ///< Flag whether this station has been added to a station class list
StationClassID sclass; ///< The class to which this spec belongs.
StringID name; ///< Name of this station.