From a8b61e464f6184f0d4e2b964a77fab1d461ef164 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 12 Jun 2003 06:53:05 +0000 Subject: The compressed box matrix would sometimes refer to the box after the last one. This was probably harmless, but the fix seems to be trivial. I hope. svn-id: r8441 --- scumm/boxes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scumm') diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp index ffd85d9301..3b550fce6b 100644 --- a/scumm/boxes.cpp +++ b/scumm/boxes.cpp @@ -850,7 +850,7 @@ void Scumm::createBoxMatrix() { byte itinerary = itineraryMatrix[64 * i + j]; if (itinerary != Actor::kInvalidBox) { addToMatrix(j); - while (j < num && itinerary == itineraryMatrix[64 * i + (j + 1)]) + while (j < num - 1 && itinerary == itineraryMatrix[64 * i + (j + 1)]) j++; addToMatrix(j); addToMatrix(itinerary); -- cgit v1.2.3