aboutsummaryrefslogtreecommitdiff
path: root/engines/director/dib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director/dib.cpp')
-rw-r--r--engines/director/dib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/dib.cpp b/engines/director/dib.cpp
index 4e2a21dd38..912f083569 100644
--- a/engines/director/dib.cpp
+++ b/engines/director/dib.cpp
@@ -61,8 +61,8 @@ void DIBDecoder::destroy() {
void DIBDecoder::loadPalette(Common::SeekableReadStream &stream) {
uint16 steps = stream.size()/6;
uint16 index = (steps * 3) - 1;
+ _paletteColorCount = steps;
_palette = new byte[index];
-
for (uint8 i = 0; i < steps; i++) {
_palette[index - 2] = stream.readByte();
stream.readByte();