[Scummvm-cvs-logs] SF.net SVN: scummvm:[39186] scummvm/trunk/engines/sword2/function.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sat Mar 7 16:29:52 CET 2009


Revision: 39186
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39186&view=rev
Author:   eriktorbjorn
Date:     2009-03-07 15:29:52 +0000 (Sat, 07 Mar 2009)

Log Message:
-----------
Don't crash if a cutscene is missing. (Like they are in the demo, for instance.)

Modified Paths:
--------------
    scummvm/trunk/engines/sword2/function.cpp

Modified: scummvm/trunk/engines/sword2/function.cpp
===================================================================
--- scummvm/trunk/engines/sword2/function.cpp	2009-03-07 14:40:58 UTC (rev 39185)
+++ scummvm/trunk/engines/sword2/function.cpp	2009-03-07 15:29:52 UTC (rev 39186)
@@ -2141,7 +2141,7 @@
 
 	_moviePlayer = makeMoviePlayer(filename, _vm, _vm->_mixer, _vm->_system);
 
-	if (_moviePlayer->load(filename)) {
+	if (_moviePlayer && _moviePlayer->load(filename)) {
 		_moviePlayer->play(_sequenceTextList, _sequenceTextLines, _smackerLeadIn, _smackerLeadOut);
 	}
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list