Changeset - r27061:c5d62ad93958
[Not reviewed]
master
0 1 0
PeterN - 20 months ago 2023-04-09 18:28:55
peter1138@openttd.org
Fix #10619: Crash loading linkgraph for older savegames. (#10620)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/saveload/linkgraph_sl.cpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)