From 49273699873390988d54417825e68ddac64343ac Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 25 Sep 2017 21:25:26 -0400 Subject: TITANIC: Fix loop limit in TTsentenceConcept destructor --- engines/titanic/true_talk/tt_sentence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/titanic/true_talk/tt_sentence.cpp b/engines/titanic/true_talk/tt_sentence.cpp index a1cf261bf2..2c675ba9e5 100644 --- a/engines/titanic/true_talk/tt_sentence.cpp +++ b/engines/titanic/true_talk/tt_sentence.cpp @@ -28,7 +28,7 @@ namespace Titanic { TTsentenceConcept::~TTsentenceConcept() { - for (int idx = 0; idx < 5; ++idx) + for (int idx = 0; idx <= 5; ++idx) delete _concepts[idx]; } -- cgit v1.2.3