[Scummvm-cvs-logs] SF.net SVN: scummvm: [32366] scummvm/trunk/engines/cine/gfx.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Thu May 29 19:58:57 CEST 2008
Revision: 32366
http://scummvm.svn.sourceforge.net/scummvm/?rev=32366&view=rev
Author: thebluegr
Date: 2008-05-29 10:58:56 -0700 (Thu, 29 May 2008)
Log Message:
-----------
Fixed a crash that occurs when OS starts
Modified Paths:
--------------
scummvm/trunk/engines/cine/gfx.cpp
Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp 2008-05-29 16:53:28 UTC (rev 32365)
+++ scummvm/trunk/engines/cine/gfx.cpp 2008-05-29 17:58:56 UTC (rev 32366)
@@ -795,6 +795,14 @@
/*! \brief Fade to black
*/
void FWRenderer::fadeToBlack() {
+ // FIXME: _activeLowPal is invalid when starting Operation Stealth
+ // Adding this sanity check fixes a crash when the game
+ // starts, but I'm not sure if this is the best place to check it
+ if (!_activeLowPal) {
+ warning("_activeLowPal is invalid");
+ return;
+ }
+
assert(_activeLowPal);
for (int i = 0; i < 8; i++) {
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