aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/gui/gui_transitions.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_transitions.cpp b/engines/sci/gui/gui_transitions.cpp
index 92d8297555..4137be6f25 100644
--- a/engines/sci/gui/gui_transitions.cpp
+++ b/engines/sci/gui/gui_transitions.cpp
@@ -146,8 +146,11 @@ void SciGuiTransitions::doit(Common::Rect picRect) {
if (_blackoutFlag) {
// We need to find out what transition we are supposed to use for blackout
translationEntry = translateNumber(_number, blackoutTransitionIDs);
-
- doTransition(translationEntry->newId, true);
+ if (translationEntry) {
+ doTransition(translationEntry->newId, true);
+ } else {
+ warning("SciGuiTransitions: ID %d not listed in blackoutTransitionIDs", _number);
+ }
}
// Now we do the actual transition to the new screen