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

sev- sev at scummvm.org
Sun Apr 9 00:11:50 CEST 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 .

Summary:
b1778dc04d DIRECTOR: Remove pointless comparison.


Commit: b1778dc04d6530cc445e534120d7fa29b8eea28f
    https://github.com/scummvm/scummvm/commit/b1778dc04d6530cc445e534120d7fa29b8eea28f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-04-09T00:11:17+02:00

Commit Message:
DIRECTOR: Remove pointless comparison.

size is a byte, so it is always < 2048.

Changed paths:
    engines/director/score.cpp


diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 72913d4..0e9b51e 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -419,7 +419,7 @@ void Score::loadCastDataVWCR(Common::SeekableSubReadStreamEndian &stream) {
 		if (size == 0)
 			continue;
 
-		if (debugChannelSet(5, kDebugLoading) && size < 2048)
+		if (debugChannelSet(5, kDebugLoading))
 			stream.hexdump(size);
 
 		uint8 castType = stream.readByte();





More information about the Scummvm-git-logs mailing list