Patch #697846: Fix for graphics glitches after saving

svn-id: r6690
This commit is contained in:
Max Horn 2003-03-05 11:40:37 +00:00
parent 45f6976805
commit f02506f993

View File

@ -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);