[Scummvm-cvs-logs] CVS: scummvm/scumm saveload.cpp,1.52,1.53
Max Horn
fingolfin at users.sourceforge.net
Wed Mar 5 03:41:08 CET 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv27303
Modified Files:
saveload.cpp
Log Message:
Patch #697846: Fix for graphics glitches after saving
Index: saveload.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/saveload.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- saveload.cpp 8 Feb 2003 01:27:21 -0000 1.52
+++ saveload.cpp 5 Mar 2003 11:40:37 -0000 1.53
@@ -578,7 +578,8 @@
// 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);
More information about the Scummvm-git-logs
mailing list