git-svn-id: https://svn.eduke32.com/eduke32@6371 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-07-19 06:06:19 +00:00
parent dad337add8
commit efcdd0cde0

View file

@ -161,7 +161,7 @@ int Gv_ReadSave(int32_t kFile)
if (kdfread(&g_gameArrayCount,sizeof(g_gameArrayCount),1,kFile) != 1) goto corrupt;
for (bssize_t i=0; i<g_gameArrayCount; i++)
{
if (aGameArrays[i].flags & GAMEARRAY_READONLY)
if (aGameArrays[i].flags & (GAMEARRAY_READONLY | GAMEARRAY_SYSTEM))
continue;
char *const olabel = aGameArrays[i].szLabel;
@ -282,7 +282,7 @@ void Gv_WriteSave(FILE *fil)
for (bssize_t i=0; i<g_gameArrayCount; i++)
{
if (aGameArrays[i].flags & GAMEARRAY_READONLY)
if (aGameArrays[i].flags & (GAMEARRAY_READONLY | GAMEARRAY_SYSTEM))
continue;
// write for .size and .dwFlags (the rest are pointers):