aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-03-05 11:40:37 +0000
committerMax Horn2003-03-05 11:40:37 +0000
commitf02506f9931c3b4d7eb97887e16228623461011b (patch)
tree92d1b47fdb10a7159a826584684a8276a59b24d9
parent45f69768055865c33302e4941384626c79219e67 (diff)
downloadscummvm-rg350-f02506f9931c3b4d7eb97887e16228623461011b.tar.gz
scummvm-rg350-f02506f9931c3b4d7eb97887e16228623461011b.tar.bz2
scummvm-rg350-f02506f9931c3b4d7eb97887e16228623461011b.zip
Patch #697846: Fix for graphics glitches after saving
svn-id: r6690
-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);