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

Method Load

src/saveload/linkgraph_sl.cpp:302–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300 }
301
302 void Load() const override
303 {
304 const std::vector<SaveLoad> slt = SlCompatTableHeader(GetLinkGraphJobDesc(), _linkgraph_job_sl_compat);
305
306 int index;
307 while ((index = SlIterateArray()) != -1) {
308 LinkGraphJob *lgj = new (LinkGraphJobID(index)) LinkGraphJob();
309 SlObject(lgj, slt);
310 }
311 }
312};
313
314/**

Callers

nothing calls this directly

Calls 4

SlCompatTableHeaderFunction · 0.85
GetLinkGraphJobDescFunction · 0.85
SlIterateArrayFunction · 0.85
SlObjectFunction · 0.85

Tested by

no test coverage detected