Skip to content

Commit

Permalink
Exhumed: do raw serialization of FreeListArray.
Browse files Browse the repository at this point in the history
This is for robustness reasons, there were occurences where this did not properly restore everything as intended.
  • Loading branch information
coelckers committed Nov 12, 2023
1 parent c624180 commit 6984b7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/games/exhumed/src/freelistarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ template<class Type, int size> class FreeListArray
{
if (arc.BeginObject(key))
{
arc("freecount", freecount)
.Array("freelist", FreeList, size)
.Array("data", DataList, size);

/*
FixedBitArray<size> check;
if (arc.isWriting())
Expand All @@ -95,6 +101,7 @@ template<class Type, int size> class FreeListArray
if (!check[i]) FreeList[freecount++] = i;
}
}
*/
arc.EndObject();
}
}
Expand Down

0 comments on commit 6984b7d

Please sign in to comment.