aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2006-06-03 08:50:41 +0000
committerSven Hesse2006-06-03 08:50:41 +0000
commit2aa31f4bf3f1b0be170c5732dcf7267af24a2cd7 (patch)
tree5141b0bf376b1717c8d35f214dccac541dd3cee8 /engines/gob
parenta1d55df73e773983be9599ff716d1453a1d6ac6e (diff)
downloadscummvm-rg350-2aa31f4bf3f1b0be170c5732dcf7267af24a2cd7.tar.gz
scummvm-rg350-2aa31f4bf3f1b0be170c5732dcf7267af24a2cd7.tar.bz2
scummvm-rg350-2aa31f4bf3f1b0be170c5732dcf7267af24a2cd7.zip
Matched the memset in imdFrameUncompressor() to the original asm, that
fixes a small glitch svn-id: r22857
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/game.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp
index d69a1b8dad..2aa65d4fd6 100644
--- a/engines/gob/game.cpp
+++ b/engines/gob/game.cpp
@@ -2549,8 +2549,6 @@ void Game::imdFrameUncompressor(byte *dest, byte *src) {
uint8 chunkCount;
bool mode;
- memset(buf, 0, sizeof(buf));
-
frameLength = READ_LE_UINT16(src);
src += 4;
bufPos1 = 4078;
@@ -2560,6 +2558,7 @@ void Game::imdFrameUncompressor(byte *dest, byte *src) {
bufPos1 = 273;
mode = 1; // 123Ch (cmp al, 12h)
}
+ memset(buf, 32, bufPos1);
chunkCount = 1;
chunkBitField = 0;