| 357 | } |
| 358 | |
| 359 | void Load() const override |
| 360 | { |
| 361 | const std::vector<SaveLoad> slt = SlCompatTableHeader(_industrytype_builder_desc, _industrytype_builder_sl_compat); |
| 362 | |
| 363 | for (IndustryType it = 0; it < NUM_INDUSTRYTYPES; it++) { |
| 364 | _industry_builder.builddata[it].Reset(); |
| 365 | } |
| 366 | int index; |
| 367 | while ((index = SlIterateArray()) != -1) { |
| 368 | if ((uint)index >= NUM_INDUSTRYTYPES) SlErrorCorrupt("Too many industry builder datas"); |
| 369 | SlObject(_industry_builder.builddata + index, slt); |
| 370 | } |
| 371 | } |
| 372 | }; |
| 373 | |
| 374 | static const INDYChunkHandler INDY; |
nothing calls this directly
no test coverage detected