@@ -108,6 +108,17 @@ GRFConfig::~GRFConfig()
}
/**
* Copy the parameter information from the \a src config.
* @param src Source config.
*/
void GRFConfig::CopyParams(const GRFConfig &src)
{
this->num_params = src.num_params;
this->num_valid_params = src.num_valid_params;
MemCpyT<uint32>(this->param, src.param, lengthof(this->param));
* Get the name of this grf. In case the name isn't known
* the filename is returned.
* @return The name of filename of this grf.