aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/saveload.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp
index 73d85ea2d4..f94562c435 100644
--- a/scumm/saveload.cpp
+++ b/scumm/saveload.cpp
@@ -578,7 +578,8 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion)
// Because old savegames won't fill the entire gfxUsageBits[] array,
// clear it here just to be sure it won't hold any unforseen garbage.
- memset(gfxUsageBits, 0, sizeof(gfxUsageBits));
+ if (!s->isSaving())
+ memset(gfxUsageBits, 0, sizeof(gfxUsageBits));
s->saveLoadEntries(this, mainEntries);