aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-27 21:50:37 -0500
committerPaul Gilbert2017-01-27 21:50:37 -0500
commit8c48fd6bc71998ef8fde92f9b53c0ec593e4ef6e (patch)
treeb3cef6f5b08a18a4971caae0ab7dfb5267253ac7 /engines
parent10766eb46f00c2ed9b3550242ff8463659f5326c (diff)
downloadscummvm-rg350-8c48fd6bc71998ef8fde92f9b53c0ec593e4ef6e.tar.gz
scummvm-rg350-8c48fd6bc71998ef8fde92f9b53c0ec593e4ef6e.tar.bz2
scummvm-rg350-8c48fd6bc71998ef8fde92f9b53c0ec593e4ef6e.zip
TITANIC: Don't untimely remove unrecognised COMPLEX_VERB parser nodes
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/true_talk/tt_parser.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/titanic/true_talk/tt_parser.cpp b/engines/titanic/true_talk/tt_parser.cpp
index ca72b94c09..2ef93d7165 100644
--- a/engines/titanic/true_talk/tt_parser.cpp
+++ b/engines/titanic/true_talk/tt_parser.cpp
@@ -1143,9 +1143,8 @@ int TTparser::considerRequests(TTword *word) {
_sentenceConcept->get18());
status = _sentenceConcept->createConcept(1, 1, verbP);
delete verbP;
+ flag = true;
}
-
- flag = true;
}
break;
@@ -1276,8 +1275,11 @@ int TTparser::considerRequests(TTword *word) {
}
TTparserNode *nextP = dynamic_cast<TTparserNode *>(nodeP->_nextP);
- if (flag)
+ if (flag) {
removeNode(nodeP);
+ flag = false;
+ }
+
nodeP = nextP;
}