aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/sequences_hof.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/sequences_hof.cpp b/engines/kyra/sequences_hof.cpp
index e70bbca88b..a4294cbc37 100644
--- a/engines/kyra/sequences_hof.cpp
+++ b/engines/kyra/sequences_hof.cpp
@@ -1041,7 +1041,8 @@ void SeqPlayer_HOF::playDialogueAnimation(uint16 strID, uint16 soundID, int text
int dur = int(strlen(_sequenceStrings[strID])) * (_vm->gameFlags().isTalkie ? 7 : 15);
if (_vm->textEnabled()) {
int slot = displaySubTitle(strID, textPosX, textPosY, dur, textWidth);
- _textSlots[slot].textcolor = textColor;
+ if (slot >= 0)
+ _textSlots[slot].textcolor = textColor;
}
_specialAnimTimeOutTotal = _system->getMillis() + dur * _vm->tickLength();
int curframe = animStartFrame;