summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-10 17:01:29 +0000
committerrubidium <rubidium@openttd.org>2010-11-10 17:01:29 +0000
commit0f5c1e2eaffe753aca3857c434d88832772ad5ad (patch)
tree646f6eee27ca320ecc32e037013d969aecdcc2ce
parent15defb219f44738cf301d494a16576dffca26de3 (diff)
downloadopenttd-0f5c1e2eaffe753aca3857c434d88832772ad5ad.tar.xz
(svn r21128) -Fix [FS#4208]: Crash when disabling static NewGRFs (when joining/starting a server)
-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;