diff options
author | Borja Lorente | 2016-06-30 08:41:25 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 18:43:13 +0200 |
commit | 517aceefcb397ccda476dc7e2b02d6da5595e4fd (patch) | |
tree | e0430870cb341ba64f903d3042bffecfc744ea19 /engines/macventure/image.cpp | |
parent | 246fec28f55ca646a77985cd7b95a33b2cae994d (diff) | |
download | scummvm-rg350-517aceefcb397ccda476dc7e2b02d6da5595e4fd.tar.gz scummvm-rg350-517aceefcb397ccda476dc7e2b02d6da5595e4fd.tar.bz2 scummvm-rg350-517aceefcb397ccda476dc7e2b02d6da5595e4fd.zip |
MACVENTURE: Add scene transition
Diffstat (limited to 'engines/macventure/image.cpp')
-rw-r--r-- | engines/macventure/image.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/macventure/image.cpp b/engines/macventure/image.cpp index d880e142bb..1aae1727ef 100644 --- a/engines/macventure/image.cpp +++ b/engines/macventure/image.cpp @@ -77,7 +77,13 @@ ImageAsset::~ImageAsset() { void ImageAsset::decodePPIC(ObjID id, Common::Array<byte> &data) { ObjID realID = id; uint32 size = _container->getItemByteSize(id); - if (size == 2 || size == 0) { + if (size < 2) { + _rowBytes = 0; + _bitHeight = 0; + _bitHeight = 0; + return; + } + if (size == 2) { realID = _container->getItem(id)->readUint16BE(); } Common::BitStream32BEMSB stream(_container->getItem(realID), true); |