diff options
author | peter1138 <peter1138@openttd.org> | 2007-04-11 21:04:03 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-04-11 21:04:03 +0000 |
commit | 3148fdca59bb620685663c7cb26571f6a0a24113 (patch) | |
tree | bb3bdbca60f3320458aaf7a9f6d6d1da9cc03590 /src/newgrf_station.cpp | |
parent | f7a92a2f16ec59a3cfbe19144c7217e88f1a3e6f (diff) | |
download | openttd-3148fdca59bb620685663c7cb26571f6a0a24113.tar.xz |
(svn r9601) -Codechange: Store grf file reference in station spec, not just GRF ID
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 18b597cfa..a799e3c57 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -184,7 +184,7 @@ const StationSpec *GetCustomStationSpecByGrf(uint32 grfid, byte localidx) for (j = 0; j < station_classes[i].stations; j++) { const StationSpec *statspec = station_classes[i].spec[j]; if (statspec == NULL) continue; - if (statspec->grfid == grfid && statspec->localidx == localidx) return statspec; + if (statspec->grffile->grfid == grfid && statspec->localidx == localidx) return statspec; } } @@ -638,7 +638,7 @@ int AllocateSpecToStation(const StationSpec *statspec, Station *st, bool exec) } st->speclist[i].spec = statspec; - st->speclist[i].grfid = statspec->grfid; + st->speclist[i].grfid = statspec->grffile->grfid; st->speclist[i].localidx = statspec->localidx; } |