aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2012-04-10 10:19:52 +0200
committerEugene Sandulenko2018-03-28 17:36:57 +0200
commit0ee1ba07865bacc0823aeb618b44ba14522a89ab (patch)
treec7cbfdd60be15b465917c36f98d846441bf187e3 /engines
parent47b9c1f6a7032c858a7ff1145d23493d03a40797 (diff)
downloadscummvm-rg350-0ee1ba07865bacc0823aeb618b44ba14522a89ab.tar.gz
scummvm-rg350-0ee1ba07865bacc0823aeb618b44ba14522a89ab.tar.bz2
scummvm-rg350-0ee1ba07865bacc0823aeb618b44ba14522a89ab.zip
LILLIPUT: Fix a bug in VGA file loading
Diffstat (limited to 'engines')
-rw-r--r--engines/lilliput/lilliput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp
index d1cab057cf..f2e05bfd42 100644
--- a/engines/lilliput/lilliput.cpp
+++ b/engines/lilliput/lilliput.cpp
@@ -220,7 +220,7 @@ byte *LilliputEngine::loadVGA(Common::String filename, bool loadPal) {
}
} else {
// Not compressed
- int rawSize = (curByte & 0xF);
+ int rawSize = (curByte & 0xFF);
for (int i = 0; i < rawSize; ++i) {
decodeBuffer[size] = f.readByte();
--remainingSize;