mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-22 20:52:54 +01:00
Codechange: Define GRFConfigList alias and pass by reference. (#13358)
This adds the distinction between a single GRFConfig and a GRFConfig list, and simplifies how GRFConfig lists are passed to various functions.
This commit is contained in:
@@ -60,7 +60,7 @@ void LoadCheckData::Clear()
|
||||
|
||||
this->gamelog.Reset();
|
||||
|
||||
ClearGRFConfigList(&this->grfconfig);
|
||||
ClearGRFConfigList(this->grfconfig);
|
||||
}
|
||||
|
||||
/** Load game/scenario with optional content download */
|
||||
@@ -697,7 +697,7 @@ public:
|
||||
|
||||
case WID_SL_NEWGRF_INFO:
|
||||
if (_load_check_data.HasNewGrfs()) {
|
||||
ShowNewGRFSettings(false, false, false, &_load_check_data.grfconfig);
|
||||
ShowNewGRFSettings(false, false, false, _load_check_data.grfconfig);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user