From 66eb358ded6c9269c334bf169a4c9cf79cc31c47 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 13 Nov 2016 15:59:59 -0500 Subject: TITANIC: Fix incorrect local assignment in CHECK_COMMAND_FORM case --- engines/titanic/true_talk/tt_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/titanic/true_talk') diff --git a/engines/titanic/true_talk/tt_parser.cpp b/engines/titanic/true_talk/tt_parser.cpp index e432677c7c..ca72b94c09 100644 --- a/engines/titanic/true_talk/tt_parser.cpp +++ b/engines/titanic/true_talk/tt_parser.cpp @@ -740,8 +740,8 @@ int TTparser::considerRequests(TTword *word) { case CHECK_COMMAND_FORM: if (_sentenceConcept->_concept1P && _sentence->_category == 1 && !_sentenceConcept->_concept0P) { - concept = new TTconcept(_sentence->_npcScript, ST_NPC_SCRIPT); - _sentenceConcept->_concept0P = concept; + TTconcept *newConcept = new TTconcept(_sentence->_npcScript, ST_NPC_SCRIPT); + _sentenceConcept->_concept0P = newConcept; _sentenceConcept->_field18 = 3; } -- cgit v1.2.3