aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/parallaction/dialogue.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp
index 44087ab0b1..b471d29c82 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;
}