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

Function SlFixPointers

src/saveload/saveload.cpp:2341–2351  ·  view source on GitHub ↗

Fix all pointers (convert index -> pointer) */

Source from the content-addressed store, hash-verified

2339
2340/** Fix all pointers (convert index -> pointer) */
2341static void SlFixPointers()
2342{
2343 _sl.action = SLA_PTRS;
2344
2345 for (const ChunkHandler &ch : ChunkHandlers()) {
2346 Debug(sl, 3, "Fixing pointers for {}", ch.GetName());
2347 ch.FixPointers();
2348 }
2349
2350 assert(_sl.action == SLA_PTRS);
2351}
2352
2353
2354/** Yes, simply reading from a file. */

Callers 1

DoLoadFunction · 0.85

Calls 2

GetNameMethod · 0.45
FixPointersMethod · 0.45

Tested by

no test coverage detected