MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Load

Method Load

src/saveload/industry_sl.cpp:359–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
374static const INDYChunkHandler INDY;

Callers

nothing calls this directly

Calls 5

SlCompatTableHeaderFunction · 0.85
SlIterateArrayFunction · 0.85
SlErrorCorruptFunction · 0.85
SlObjectFunction · 0.85
ResetMethod · 0.45

Tested by

no test coverage detected