[Scummvm-cvs-logs] scummvm master -> cb57859159182bf54b108cda442e139a33f95d7e

bluegr md5 at scummvm.org
Mon Sep 12 21:04:17 CEST 2011


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:
cb57859159 COMPOSER: Silence a false positive warning in MSVC


Commit: cb57859159182bf54b108cda442e139a33f95d7e
    https://github.com/scummvm/scummvm/commit/cb57859159182bf54b108cda442e139a33f95d7e
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-09-12T11:58:54-07:00

Commit Message:
COMPOSER: Silence a false positive warning in MSVC

Changed paths:
    engines/composer/graphics.cpp



diff --git a/engines/composer/graphics.cpp b/engines/composer/graphics.cpp
index 0768a86..f253d85 100644
--- a/engines/composer/graphics.cpp
+++ b/engines/composer/graphics.cpp
@@ -534,7 +534,7 @@ void ComposerEngine::setBackground(uint16 id) {
 
 static void decompressSLWM(byte *buffer, Common::SeekableReadStream *stream) {
 	uint bitsLeft = 0;
-	uint16 lastBits;
+	uint16 lastBits = 0;
 	byte currBit;
 	while (true) {
 		if (bitsLeft == 0) { bitsLeft = 16; lastBits = stream->readUint16LE(); }






More information about the Scummvm-git-logs mailing list