aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-13 15:59:59 -0500
committerPaul Gilbert2016-11-13 15:59:59 -0500
commit66eb358ded6c9269c334bf169a4c9cf79cc31c47 (patch)
tree7da0927b1edae26f417eb63efb69c1b04ac649b5 /engines/titanic/true_talk
parentc6a24d1540f1fdcd69aa0afe64fbc4613a936772 (diff)
downloadscummvm-rg350-66eb358ded6c9269c334bf169a4c9cf79cc31c47.tar.gz
scummvm-rg350-66eb358ded6c9269c334bf169a4c9cf79cc31c47.tar.bz2
scummvm-rg350-66eb358ded6c9269c334bf169a4c9cf79cc31c47.zip
TITANIC: Fix incorrect local assignment in CHECK_COMMAND_FORM case
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r--engines/titanic/true_talk/tt_parser.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}