mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-26 05:51:30 +00:00
Exhumed: do raw serialization of FreeListArray.
This is for robustness reasons, there were occurences where this did not properly restore everything as intended.
This commit is contained in:
parent
c62418006c
commit
6984b7d6db
1 changed files with 7 additions and 0 deletions
|
@ -76,6 +76,12 @@ public:
|
|||
{
|
||||
if (arc.BeginObject(key))
|
||||
{
|
||||
arc("freecount", freecount)
|
||||
.Array("freelist", FreeList, size)
|
||||
.Array("data", DataList, size);
|
||||
|
||||
/*
|
||||
|
||||
FixedBitArray<size> check;
|
||||
|
||||
if (arc.isWriting())
|
||||
|
@ -95,6 +101,7 @@ public:
|
|||
if (!check[i]) FreeList[freecount++] = i;
|
||||
}
|
||||
}
|
||||
*/
|
||||
arc.EndObject();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue