From d765bb334d3cf26cc77ae8825718c39eb5792126 Mon Sep 17 00:00:00 2001 From: stevenhoefel Date: Mon, 16 Jan 2017 13:19:47 +1100 Subject: DIRECTOR: Rewind shared cast memorystream before trying to load the data. --- engines/director/frame.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines') diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index c58ae7d456..bbaa61d1d3 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -722,6 +722,7 @@ Image::ImageDecoder *Frame::getImageFrom(uint16 spriteId) { if (_vm->getSharedBMP() != NULL && _vm->getSharedBMP()->contains(imgId)) { debugC(2, kDebugImages, "Shared cast BMP: id: %d", imgId); pic = _vm->getSharedBMP()->getVal(imgId); + pic->seek(0); //TODO: this actually gets re-read every loop... we need to rewind it! bc = static_cast(_vm->getSharedCasts()->getVal(spriteId)); } else if (_vm->_currentScore->getArchive()->hasResource(MKTAG('B', 'I', 'T', 'D'), imgId)) { pic = _vm->_currentScore->getArchive()->getResource(MKTAG('B', 'I', 'T', 'D'), imgId); -- cgit v1.2.3