forked from mirror/OpenTTD
Codechange: Store GRFConfig parameters in a vector. (#13137)
All GRFConfigs have space allocated for parameters, but only configured GRFConfigs need them. Using a vector instead means that space is only used when parameters are used.
This commit is contained in:
@@ -663,7 +663,7 @@ void Gamelog::GRFUpdate(const GRFConfig *oldc, const GRFConfig *newc)
|
||||
this->GRFCompatible(&nl[n]->ident);
|
||||
}
|
||||
|
||||
if (og->num_params != ng->num_params || og->param == ng->param) {
|
||||
if (og->param != ng->param) {
|
||||
this->GRFParameters(ol[o]->ident.grfid);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user