From 6984b7d6db7aec1722ac156a21b87efb0c289dfc Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 12 Nov 2023 12:04:08 +0100 Subject: [PATCH] Exhumed: do raw serialization of FreeListArray. This is for robustness reasons, there were occurences where this did not properly restore everything as intended. --- source/games/exhumed/src/freelistarray.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/games/exhumed/src/freelistarray.h b/source/games/exhumed/src/freelistarray.h index 937565db5..090ad92f2 100644 --- a/source/games/exhumed/src/freelistarray.h +++ b/source/games/exhumed/src/freelistarray.h @@ -76,6 +76,12 @@ public: { if (arc.BeginObject(key)) { + arc("freecount", freecount) + .Array("freelist", FreeList, size) + .Array("data", DataList, size); + + /* + FixedBitArray check; if (arc.isWriting()) @@ -95,6 +101,7 @@ public: if (!check[i]) FreeList[freecount++] = i; } } + */ arc.EndObject(); } }