diff options
author | Dmitry Iskrich | 2016-06-29 19:24:12 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | b208b8e5fffc6a13277987d98400488c4d59d9c1 (patch) | |
tree | d989483eefaf6aa749714c523a8c075ac7770abe /engines/director/score.cpp | |
parent | aaf8448cbc0a282a1c28f0ef4d7c738c8b87ab3b (diff) | |
download | scummvm-rg350-b208b8e5fffc6a13277987d98400488c4d59d9c1.tar.gz scummvm-rg350-b208b8e5fffc6a13277987d98400488c4d59d9c1.tar.bz2 scummvm-rg350-b208b8e5fffc6a13277987d98400488c4d59d9c1.zip |
DIRECTOR: Fix memory corruption
Diffstat (limited to 'engines/director/score.cpp')
-rw-r--r-- | engines/director/score.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index ff324c59c4..59b37ececf 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -1129,11 +1129,11 @@ void Frame::renderSprites(Graphics::ManagedSurface &surface, bool renderTrail) { Cast *cast; if (!_vm->_currentScore->_casts.contains(_sprites[i]->_castId)) { - if (!_vm->getSharedCasts().contains(_sprites[i]->_castId)) { + if (!_vm->getSharedCasts()->contains(_sprites[i]->_castId)) { warning("Cast id %d not found", _sprites[i]->_castId); continue; } else { - cast = _vm->getSharedCasts().getVal(_sprites[i]->_castId); + cast = _vm->getSharedCasts()->getVal(_sprites[i]->_castId); } } else { cast = _vm->_currentScore->_casts[_sprites[i]->_castId]; @@ -1148,11 +1148,11 @@ void Frame::renderSprites(Graphics::ManagedSurface &surface, bool renderTrail) { uint32 imgId = 1024 + _sprites[i]->_castId; if (!_vm->_currentScore->getArchive()->hasResource(MKTAG('D', 'I', 'B', ' '), imgId)) { - if (!_vm->getSharedDIB().contains(imgId)) { + if (!_vm->getSharedDIB()->contains(imgId)) { warning("DIB id %d not found", imgId); continue; } else { - img.loadStream(*_vm->getSharedDIB().getVal(imgId)); + img.loadStream(*_vm->getSharedDIB()->getVal(imgId)); } } else { img.loadStream(*_vm->_currentScore->getArchive()->getResource(MKTAG('D', 'I', 'B', ' '), imgId)); |