summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-04 20:25:17 +0000
committerfrosch <frosch@openttd.org>2011-07-04 20:25:17 +0000
commitd2b236802cb202c07aa7586b197935b96dddee7b (patch)
tree24c500dbd7562307642cedc498ca8865c7cae49b /src/newgrf.cpp
parent0d486446b840a9631d810ded79051255deddbe5e (diff)
downloadopenttd-d2b236802cb202c07aa7586b197935b96dddee7b.tar.xz
(svn r22633) -Fix: Implement variables 25 and 7F for railtypes.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 78d91cd4a..ffd8e37fd 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -4599,6 +4599,7 @@ static void RailTypeMapSpriteGroup(ByteReader *buf, uint8 idcount)
if (railtypes[i] != INVALID_RAILTYPE) {
RailtypeInfo *rti = &_railtypes[railtypes[i]];
+ rti->grffile[ctype] = _cur_grffile;
rti->group[ctype] = _cur_grffile->spritegroups[groupid];
}
}