Skip to content

Commit 6984b7d

Browse files
committed
Exhumed: do raw serialization of FreeListArray.
This is for robustness reasons, there were occurences where this did not properly restore everything as intended.
1 parent c624180 commit 6984b7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/games/exhumed/src/freelistarray.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ template<class Type, int size> class FreeListArray
7676
{
7777
if (arc.BeginObject(key))
7878
{
79+
arc("freecount", freecount)
80+
.Array("freelist", FreeList, size)
81+
.Array("data", DataList, size);
82+
83+
/*
84+
7985
FixedBitArray<size> check;
8086
8187
if (arc.isWriting())
@@ -95,6 +101,7 @@ template<class Type, int size> class FreeListArray
95101
if (!check[i]) FreeList[freecount++] = i;
96102
}
97103
}
104+
*/
98105
arc.EndObject();
99106
}
100107
}

0 commit comments

Comments
 (0)