diff options
author | Dmitry Iskrich | 2016-06-18 14:55:40 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 9d72e0137b039b77271ff1f084290d647622c0bd (patch) | |
tree | 1ab8b0d401a060cf47252c90963f6a2d63b45168 /engines/director | |
parent | 0fa5505d659bcd0a3548f6c5d8fcfb84054b3cb8 (diff) | |
download | scummvm-rg350-9d72e0137b039b77271ff1f084290d647622c0bd.tar.gz scummvm-rg350-9d72e0137b039b77271ff1f084290d647622c0bd.tar.bz2 scummvm-rg350-9d72e0137b039b77271ff1f084290d647622c0bd.zip |
DIRECTOR: Fix trail surface bug
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/score.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 3f0e37f210..9bbb0d3ada 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -71,6 +71,7 @@ void Score::loadArchive() { loadPalette(*pal); g_system->getPaletteManager()->setPalette(_vm->getPalette(), 0, _vm->getPaletteColorCount()); + assert(_movieArchive->hasResource(MKTAG('V','W','S','C'), 1024)); assert(_movieArchive->hasResource(MKTAG('V','W','C','F'), 1024)); assert(_movieArchive->hasResource(MKTAG('V','W','C','R'), 1024)); @@ -1158,6 +1159,7 @@ uint16 Frame::getSpriteIDFromPos(Common::Point pos) { Sprite::Sprite() { _enabled = false; + _trails = 0; _width = 0; _ink = kInkTypeCopy; _flags = 0; @@ -1170,6 +1172,7 @@ Sprite::Sprite(const Sprite &sprite) { _enabled = sprite._enabled; _castId = sprite._castId; _flags = sprite._flags; + _trails = sprite._trails; _ink = sprite._ink; _width = sprite._width; _height = sprite._height; |