From 2aa31f4bf3f1b0be170c5732dcf7267af24a2cd7 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sat, 3 Jun 2006 08:50:41 +0000 Subject: Matched the memset in imdFrameUncompressor() to the original asm, that fixes a small glitch svn-id: r22857 --- engines/gob/game.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/gob') 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; -- cgit v1.2.3