Changeset - r16063:2ea39df1dc9d
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-09-08 15:35:54
yexo@openttd.org
(svn r20766) -Fix [FS#4112]: action14 data was not used for NewGRFs loaded from a savegame
1 file changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf_config.cpp
Show inline comments
 
@@ -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]);
 
					}
 
				}
 
			}
 
		}
 
	}
0 comments (0 inline, 0 general)