aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-06-24 05:11:19 +0000
committerTravis Howell2004-06-24 05:11:19 +0000
commit54e3e20b985a652b43f57d1769f6671fe526a979 (patch)
treed7f0651f0183ef2d5b5c7bac9b41417e7b04de81 /scumm
parent9fae63756b8f3ff4e269e711c664545196a3b69f (diff)
downloadscummvm-rg350-54e3e20b985a652b43f57d1769f6671fe526a979.tar.gz
scummvm-rg350-54e3e20b985a652b43f57d1769f6671fe526a979.tar.bz2
scummvm-rg350-54e3e20b985a652b43f57d1769f6671fe526a979.zip
Revert change, caused regression (Mini game in Cosmic Diner of puttmoon no longer works)
svn-id: r14025
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v6he.cpp3
1 files changed, 1 insertions, 2 deletions
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);