mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
DIRECTOR: Implement safety check while Shared Cast loading
This commit is contained in:
parent
a18805ae77
commit
811edc9d7e
@ -211,7 +211,8 @@ void Score::loadSpriteImages(bool isSharedCast) {
|
||||
if (isSharedCast) {
|
||||
debugC(4, kDebugImages, "Shared cast BMP: id: %d", imgId);
|
||||
pic = _vm->getSharedBMP()->getVal(imgId);
|
||||
pic->seek(0); // TODO: this actually gets re-read every loop... we need to rewind it!
|
||||
if (pic != NULL)
|
||||
pic->seek(0); // TODO: this actually gets re-read every loop... we need to rewind it!
|
||||
} else if (_movieArchive->hasResource(MKTAG('B', 'I', 'T', 'D'), imgId)) {
|
||||
pic = _movieArchive->getResource(MKTAG('B', 'I', 'T', 'D'), imgId);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user