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

Method Load

src/saveload/linkgraph_sl.cpp:274–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 }
273
274 void Load() const override
275 {
276 const std::vector<SaveLoad> slt = SlCompatTableHeader(GetLinkGraphDesc(), _linkgraph_sl_compat);
277
278 int index;
279 while ((index = SlIterateArray()) != -1) {
280 LinkGraph *lg = new (LinkGraphID(index)) LinkGraph();
281 SlObject(lg, slt);
282 }
283 }
284};
285
286/**

Callers

nothing calls this directly

Calls 4

SlCompatTableHeaderFunction · 0.85
GetLinkGraphDescFunction · 0.85
SlIterateArrayFunction · 0.85
SlObjectFunction · 0.85

Tested by

no test coverage detected