summaryrefslogtreecommitdiff
path: root/src/newgrf_config.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-09-08 15:35:54 +0000
committeryexo <yexo@openttd.org>2010-09-08 15:35:54 +0000
commitd6d3e838471e833154ce0fba37c856722d194f76 (patch)
tree121731c6a007b3ea504e7ebdeec89c80bd56c46d /src/newgrf_config.cpp
parent1ba35972e604d1a5ab34c7b29384c5a13618fdc0 (diff)
downloadopenttd-d6d3e838471e833154ce0fba37c856722d194f76.tar.xz
(svn r20766) -Fix [FS#4112]: action14 data was not used for NewGRFs loaded from a savegame
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r--src/newgrf_config.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index 49668d401..eaadd6143 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -484,6 +484,16 @@ compatible_grf:
if (c->name == NULL) c->name = DuplicateGRFText(f->name);
if (c->info == NULL) c->info = DuplicateGRFText(f->info);
c->error = NULL;
+ c->version = f->version;
+ c->num_valid_params = f->num_valid_params;
+ c->has_param_defaults = f->has_param_defaults;
+ for (uint i = 0; i < f->param_info.Length(); i++) {
+ if (f->param_info[i] == NULL) {
+ *c->param_info.Append() = NULL;
+ } else {
+ *c->param_info.Append() = new GRFParameterInfo(*f->param_info[i]);
+ }
+ }
}
}
}