# HG changeset patch # User PeterN # Date 2023-04-09 18:28:55 # Node ID c5d62ad93958b3f9c42bf62209bffd9669cac453 # Parent ece1ba24204d19dffb1fcf1b10c2cb1e114a94d6 Fix #10619: Crash loading linkgraph for older savegames. (#10620) diff --git a/src/saveload/linkgraph_sl.cpp b/src/saveload/linkgraph_sl.cpp --- a/src/saveload/linkgraph_sl.cpp +++ b/src/saveload/linkgraph_sl.cpp @@ -58,7 +58,7 @@ public: if (IsSavegameVersionBefore(SLV_191)) { /* We used to save the full matrix ... */ for (NodeID to = 0; to < max_size; ++to) { - SlObject(&_linkgraph->nodes[_linkgraph_from].edges[to], this->GetLoadDescription()); + SlObject(&edges[to], this->GetLoadDescription()); } } else { size_t used_size = IsSavegameVersionBefore(SLV_SAVELOAD_LIST_LENGTH) ? max_size : SlGetStructListLength(UINT16_MAX);