aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;