diff options
-rw-r--r-- | engines/gob/coktelvideo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/coktelvideo.cpp b/engines/gob/coktelvideo.cpp index d8275c4ad3..a8765c4a99 100644 --- a/engines/gob/coktelvideo.cpp +++ b/engines/gob/coktelvideo.cpp @@ -1086,7 +1086,7 @@ CoktelVideo::State Vmd::processFrame(uint16 frame) { uint8 index = _stream->readByte(); uint8 count = _stream->readByte(); - _stream->read(_palette + index * 3, count + 1); + _stream->read(_palette + index * 3, (count + 1) * 3); _stream->skip((255 - count) * 3); state.flags |= kStatePalette; |