Mercurial > hg > openttd
changeset 16073:248e6647932e draft
(svn r20766) -Fix [FS#4112]: action14 data was not used for NewGRFs loaded from a savegame
author | yexo <yexo@openttd.org> |
---|---|
date | Wed, 08 Sep 2010 15:35:54 +0000 |
parents | ee216c02fc99 |
children | ada92e32c39e |
files | src/newgrf_config.cpp |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -484,6 +484,16 @@ 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]); + } + } } } }