aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-04 19:39:57 -0400
committerPaul Gilbert2016-11-04 19:39:57 -0400
commit3fb2beb57ebdd75b4cfa18f68c9a871b47e61aca (patch)
tree21a038a2f9384dcc0db4cf737d36488598186b2b /engines
parent7ce632f8627354672b49169ad27d65e2cd399cf0 (diff)
downloadscummvm-rg350-3fb2beb57ebdd75b4cfa18f68c9a871b47e61aca.tar.gz
scummvm-rg350-3fb2beb57ebdd75b4cfa18f68c9a871b47e61aca.tar.bz2
scummvm-rg350-3fb2beb57ebdd75b4cfa18f68c9a871b47e61aca.zip
TITANIC: Fix removing parser nodes after processing
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/true_talk/tt_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/tt_parser.cpp b/engines/titanic/true_talk/tt_parser.cpp
index 1045416397..e653f10a5f 100644
--- a/engines/titanic/true_talk/tt_parser.cpp
+++ b/engines/titanic/true_talk/tt_parser.cpp
@@ -1277,7 +1277,7 @@ int TTparser::considerRequests(TTword *word) {
TTparserNode *nextP = dynamic_cast<TTparserNode *>(nodeP->_nextP);
if (flag)
- delete nodeP;
+ removeNode(nodeP);
nodeP = nextP;
}