From 7ced1215d4ff1c668a91fce587d8a0b7d245f65e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 29 May 2008 17:58:56 +0000 Subject: Fixed a crash that occurs when OS starts svn-id: r32366 --- engines/cine/gfx.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/cine/gfx.cpp') 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++) { -- cgit v1.2.3