aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2007-04-26 13:00:52 +0000
committerJohannes Schickel2007-04-26 13:00:52 +0000
commit8b7d458668b93cf5cbfdc6e8c326a639b29ecc8b (patch)
tree2c11e1f466715ca1891263ca871504563cf8c615 /engines/kyra/screen.cpp
parent70bae60c444d0e6809cac28415d935e2fc7ff681 (diff)
downloadscummvm-rg350-8b7d458668b93cf5cbfdc6e8c326a639b29ecc8b.tar.gz
scummvm-rg350-8b7d458668b93cf5cbfdc6e8c326a639b29ecc8b.tar.bz2
scummvm-rg350-8b7d458668b93cf5cbfdc6e8c326a639b29ecc8b.zip
Oops.
svn-id: r26596
Diffstat (limited to 'engines/kyra/screen.cpp')
-rw-r--r--engines/kyra/screen.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index 1b67ed04b3..c0e8ed7e92 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -1596,8 +1596,10 @@ uint Screen::decodeFrame4(const uint8 *src, uint8 *dst, uint32 dstSize) {
memset(dst, *src++, len); dst += len;
} else {
- if (code == 0xFF)
- len = READ_LE_UINT16(src); src += 2;
+ if (code == 0xFF) {
+ len = READ_LE_UINT16(src);
+ src += 2;
+ }
int offs = READ_LE_UINT16(src); src += 2;
if (len > count)