diff options
author | Torbjörn Andersson | 2009-03-07 15:29:52 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2009-03-07 15:29:52 +0000 |
commit | c252147a40994875d760d6b5f447fbb3e7ab4ade (patch) | |
tree | d0a724b6948626750056910a4b9a6a841158fbf5 /engines | |
parent | 309fb5f60be43f59553de2f6960484c5089e729a (diff) | |
download | scummvm-rg350-c252147a40994875d760d6b5f447fbb3e7ab4ade.tar.gz scummvm-rg350-c252147a40994875d760d6b5f447fbb3e7ab4ade.tar.bz2 scummvm-rg350-c252147a40994875d760d6b5f447fbb3e7ab4ade.zip |
Don't crash if a cutscene is missing. (Like they are in the demo, for instance.)
svn-id: r39186
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword2/function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword2/function.cpp b/engines/sword2/function.cpp index 87fde864a6..6c6c4939cb 100644 --- a/engines/sword2/function.cpp +++ b/engines/sword2/function.cpp @@ -2141,7 +2141,7 @@ int32 Logic::fnPlaySequence(int32 *params) { _moviePlayer = makeMoviePlayer(filename, _vm, _vm->_mixer, _vm->_system); - if (_moviePlayer->load(filename)) { + if (_moviePlayer && _moviePlayer->load(filename)) { _moviePlayer->play(_sequenceTextList, _sequenceTextLines, _smackerLeadIn, _smackerLeadOut); } |