summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-04-11 21:04:03 +0000
committerpeter1138 <peter1138@openttd.org>2007-04-11 21:04:03 +0000
commit69982b1f018d120bd99338f9260760984a5ce98b (patch)
treebb3bdbca60f3320458aaf7a9f6d6d1da9cc03590 /src/newgrf.cpp
parentb47078d6903a9e7e9969351e86b00a1d7db6c90f (diff)
downloadopenttd-69982b1f018d120bd99338f9260760984a5ce98b.tar.xz
(svn r9601) -Codechange: Store grf file reference in station spec, not just GRF ID
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index a2dd255cb..fcfa39a41 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -2539,7 +2539,7 @@ static void StationMapSpriteGroup(byte *buf, uint8 idcount, uint8 cidcount)
StationSpec *statspec = _cur_grffile->stations[stid];
statspec->spritegroup[CT_DEFAULT] = _cur_grffile->spritegroups[groupid];
- statspec->grfid = _cur_grffile->grfid;
+ statspec->grffile = _cur_grffile;
statspec->localidx = stid;
SetCustomStationSpec(statspec);
}