mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
DIRECTOR: LINGO: Fix crash when referencing non-existing/non-loaded DV cast
This commit is contained in:
parent
e9a110ef23
commit
7e77b6c585
@ -1567,7 +1567,7 @@ void Lingo::setTheSprite(Datum &id1, int field, Datum &d) {
|
||||
break;
|
||||
case kTheMovieRate:
|
||||
channel->_movieRate = d.asFloat();
|
||||
if (sprite->_cast->_type == kCastDigitalVideo)
|
||||
if (sprite->_cast && sprite->_cast->_type == kCastDigitalVideo)
|
||||
((DigitalVideoCastMember *)sprite->_cast)->setMovieRate(channel->_movieRate);
|
||||
else
|
||||
warning("Setting movieTime for non-digital video");
|
||||
|
Loading…
x
Reference in New Issue
Block a user