aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-25 21:25:26 -0400
committerPaul Gilbert2017-09-25 21:25:26 -0400
commit49273699873390988d54417825e68ddac64343ac (patch)
treed56079893267514908aec1e4cbe8bf4a35b13734 /engines/titanic
parentc188fd91304d0f75933ac53bf356647075650f6c (diff)
downloadscummvm-rg350-49273699873390988d54417825e68ddac64343ac.tar.gz
scummvm-rg350-49273699873390988d54417825e68ddac64343ac.tar.bz2
scummvm-rg350-49273699873390988d54417825e68ddac64343ac.zip
TITANIC: Fix loop limit in TTsentenceConcept destructor
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/true_talk/tt_sentence.cpp2
1 files changed, 1 insertions, 1 deletions
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];
}