From 54e3e20b985a652b43f57d1769f6671fe526a979 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 24 Jun 2004 05:11:19 +0000 Subject: Revert change, caused regression (Mini game in Cosmic Diner of puttmoon no longer works) svn-id: r14025 --- scumm/script_v6he.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scumm') diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp index c35d9621a6..ce6c4c07c7 100644 --- a/scumm/script_v6he.cpp +++ b/scumm/script_v6he.cpp @@ -1082,8 +1082,7 @@ int ScummEngine_v6he::readFileToArray(int slot, int32 size) { writeVar(0, 0); - // define size as size-1 because in defineArray it gets incremented - ArrayHeader *ah = defineArray(0, rtCostume, 0, size-1); + ArrayHeader *ah = defineArray(0, rtCostume, 0, size); _hFileTable[slot].read(ah->data, size); return readVar(0); -- cgit v1.2.3