diff options
author | Dmitry Iskrich | 2016-07-03 19:50:06 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | b62089ed9554fd04c42fc3cc1fe69e58cc58828e (patch) | |
tree | cdf0c5da4dffe7178159f3a54055ffa54402528c /engines | |
parent | 260c44beed4c67f3576503e6a22daad955ec2af5 (diff) | |
download | scummvm-rg350-b62089ed9554fd04c42fc3cc1fe69e58cc58828e.tar.gz scummvm-rg350-b62089ed9554fd04c42fc3cc1fe69e58cc58828e.tar.bz2 scummvm-rg350-b62089ed9554fd04c42fc3cc1fe69e58cc58828e.zip |
DIRECTOR: Fix image resource checking
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/score.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 655cf91340..22f5381d20 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -1272,7 +1272,7 @@ Image::ImageDecoder *Frame::getImageFrom(uint16 spriteId) { uint16 imgId = spriteId + 1024; Image::ImageDecoder *img = NULL; - if (!_vm->_currentScore->getArchive()->hasResource(MKTAG('D', 'I', 'B', ' '), imgId)) { + if (_vm->_currentScore->getArchive()->hasResource(MKTAG('D', 'I', 'B', ' '), imgId)) { img = new DIBDecoder(); img->loadStream(*_vm->_currentScore->getArchive()->getResource(MKTAG('D', 'I', 'B', ' '), imgId)); return img; @@ -1284,7 +1284,7 @@ Image::ImageDecoder *Frame::getImageFrom(uint16 spriteId) { return img; } - if (!_vm->_currentScore->getArchive()->hasResource(MKTAG('B', 'I', 'T', 'D'), imgId)) { + if (_vm->_currentScore->getArchive()->hasResource(MKTAG('B', 'I', 'T', 'D'), imgId)) { img = new Image::BitmapDecoder(); img->loadStream(*_vm->_currentScore->getArchive()->getResource(MKTAG('B', 'I', 'T', 'D'), imgId)); return img; |