From 60eda3496d449f5b451e8c7eb0f7a0bc2b729b90 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sun, 23 May 2010 14:14:24 +0200 Subject: [PATCH 2/5] always check dialogue flags --- engines/parallaction/dialogue.cpp | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index 7a28d18..df4f040 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -252,8 +252,13 @@ void DialogueManager::nextAnswer() { } if (!_q->_answers[0]->_text.compareToIgnoreCase("NULL")) { - _answerId = 0; - _state = NEXT_QUESTION; + addVisibleAnswers(_q); + if (_numVisAnswers) { + _answerId = _visAnswers[0]._index; + _state = NEXT_QUESTION; + } else { + _state = DIALOGUE_OVER; + } return; } -- 1.6.3.3