summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
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];
}
}