aboutsummaryrefslogtreecommitdiff
path: root/engines/composer
diff options
context:
space:
mode:
authorAlyssa Milburn2011-08-04 21:50:17 +0200
committerAlyssa Milburn2011-08-04 21:50:17 +0200
commit62a22b62931fc43705a9bf62383e58896b53ddb4 (patch)
tree352a4cc96ad42f2a82f499b2d015202dc990e5b3 /engines/composer
parent7356b83faf2fa04ca4d439cdb17314247f03e96d (diff)
downloadscummvm-rg350-62a22b62931fc43705a9bf62383e58896b53ddb4.tar.gz
scummvm-rg350-62a22b62931fc43705a9bf62383e58896b53ddb4.tar.bz2
scummvm-rg350-62a22b62931fc43705a9bf62383e58896b53ddb4.zip
COMPOSER: Fix a warning and an uninitialized value.
Diffstat (limited to 'engines/composer')
-rw-r--r--engines/composer/graphics.cpp2
-rw-r--r--engines/composer/resource.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/engines/composer/graphics.cpp b/engines/composer/graphics.cpp
index 3de244970e..5c9fc6e1f7 100644
--- a/engines/composer/graphics.cpp
+++ b/engines/composer/graphics.cpp
@@ -506,7 +506,7 @@ void ComposerEngine::loadCTBL(uint16 id, uint fadePercent) {
stream->read(buffer, numEntries * 3);
delete stream;
- for (uint i = 0; i < numEntries * 3; i++)
+ for (uint16 i = 0; i < numEntries * 3; i++)
buffer[i] = ((unsigned int)buffer[i] * fadePercent) / 100;
_system->getPaletteManager()->setPalette(buffer, 0, numEntries);
diff --git a/engines/composer/resource.cpp b/engines/composer/resource.cpp
index e0893380bf..b40bdb379b 100644
--- a/engines/composer/resource.cpp
+++ b/engines/composer/resource.cpp
@@ -251,6 +251,7 @@ bool ComposerArchive::openStream(Common::SeekableReadStream *stream) {
Pipe::Pipe(Common::SeekableReadStream *stream) {
_offset = 0;
_stream = stream;
+ _anim = NULL;
nextFrame();
}