* Reset read data. */
| 47 | * Reset read data. |
| 48 | */ |
| 49 | void LoadCheckData::Clear() |
| 50 | { |
| 51 | this->checkable = false; |
| 52 | this->error = INVALID_STRING_ID; |
| 53 | this->error_msg.clear(); |
| 54 | |
| 55 | this->map_size_x = this->map_size_y = 256; // Default for old savegames which do not store mapsize. |
| 56 | this->current_date = CalendarTime::MIN_DATE; |
| 57 | this->landscape = {}; |
| 58 | this->starting_year = {}; |
| 59 | |
| 60 | companies.clear(); |
| 61 | |
| 62 | this->gamelog.Reset(); |
| 63 | |
| 64 | ClearGRFConfigList(this->grfconfig); |
| 65 | } |
| 66 | |
| 67 | /** Load game/scenario with optional content download */ |
| 68 | static constexpr std::initializer_list<NWidgetPart> _nested_load_dialog_widgets = { |
no test coverage detected