[Scummvm-git-logs] scummvm master -> cdfe5a3107397ca39b7638d0d44c43c3be42d6df

wjp wjp at usecode.org
Sat Feb 18 15:21:30 CET 2017

This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

cdfe5a3107 SCI: Remove check that is never triggered

Commit: cdfe5a3107397ca39b7638d0d44c43c3be42d6df
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2017-02-18T15:20:57+01:00

Commit Message:
SCI: Remove check that is never triggered

Since blockSize is asserted to be positive, buf can never be equal to _buf.

Changed paths:

diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 561b74d..a3a690b 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -456,9 +456,6 @@ void Script::syncStringHeap(Common::Serializer &s) {
 				s.syncBytes(buf, blockSize);
 			buf += blockSize;
-			if (_buf - buf == 0)
-				break;
 		} while (1);
 	} else if (getSciVersion() >= SCI_VERSION_1_1 && getSciVersion() <= SCI_VERSION_2_1_LATE){

More information about the Scummvm-git-logs mailing list