summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index cfec0dd8d..47acb389e 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -7134,6 +7134,7 @@ static void InitNewGRFFile(const GRFConfig *config, int sprite_offset)
newfile->filename = strdup(config->filename);
newfile->sprite_offset = sprite_offset;
+ newfile->grfid = config->ident.grfid;
/* Initialise local settings to defaults */
newfile->traininfo_vehicle_pitch = 0;