aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/gfx.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2008-05-29 17:58:56 +0000
committerFilippos Karapetis2008-05-29 17:58:56 +0000
commit7ced1215d4ff1c668a91fce587d8a0b7d245f65e (patch)
tree1bf280dd9fd0253c7a280aeeb4a3c3e588bccd36 /engines/cine/gfx.cpp
parent13c8e6d94b6d074985ef781d58300b56970b8c8f (diff)
downloadscummvm-rg350-7ced1215d4ff1c668a91fce587d8a0b7d245f65e.tar.gz
scummvm-rg350-7ced1215d4ff1c668a91fce587d8a0b7d245f65e.tar.bz2
scummvm-rg350-7ced1215d4ff1c668a91fce587d8a0b7d245f65e.zip
Fixed a crash that occurs when OS starts
svn-id: r32366
Diffstat (limited to 'engines/cine/gfx.cpp')
-rw-r--r--engines/cine/gfx.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp
index e20dd46c53..aa457fe4f9 100644
--- a/engines/cine/gfx.cpp
+++ b/engines/cine/gfx.cpp
@@ -795,6 +795,14 @@ void FWRenderer::drawInputBox(const char *info, const char *input, int cursor, i
/*! \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++) {