[Scummvm-cvs-logs] CVS: scummvm/scumm saveload.cpp,1.237,1.238
Gregory Montoir
cyx at users.sourceforge.net
Fri Oct 14 12:35:08 CEST 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30241/scumm
Modified Files:
saveload.cpp
Log Message:
Fixed the 'Failed to save game state' warning in HE90. _numBitVariables is equal to 0 there, so Serializer::saveLoadArrayOf() is called with len=0 which calls GzipSaveFile::write() with dataSize=0, which leads to GzipSaveFile::_ioError being set.
Index: saveload.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/saveload.cpp,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -d -r1.237 -r1.238
--- saveload.cpp 13 Oct 2005 23:20:41 -0000 1.237
+++ saveload.cpp 14 Oct 2005 19:32:58 -0000 1.238
@@ -1415,7 +1415,7 @@
uint32 data;
// speed up byte arrays
- if (datasize == 1 && filetype == sleByte) {
+ if (len > 0 && datasize == 1 && filetype == sleByte) {
saveBytes(b, len);
return;
}
More information about the Scummvm-git-logs
mailing list