aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/script_v100he.cpp
diff options
context:
space:
mode:
authorMax Horn2006-04-26 14:05:09 +0000
committerMax Horn2006-04-26 14:05:09 +0000
commit092fd961456ff20026886c6f30d2c6c00d532165 (patch)
tree60c6118d099352acc43cad3f893b4cf2306770fd /engines/scumm/he/script_v100he.cpp
parentc4c09fd8f1c94ef18c965be6a92ab7d08716b05f (diff)
downloadscummvm-rg350-092fd961456ff20026886c6f30d2c6c00d532165.tar.gz
scummvm-rg350-092fd961456ff20026886c6f30d2c6c00d532165.tar.bz2
scummvm-rg350-092fd961456ff20026886c6f30d2c6c00d532165.zip
Replaced _hFileTable by _hInFileTable/_hOutFileTable
svn-id: r22182
Diffstat (limited to 'engines/scumm/he/script_v100he.cpp')
-rw-r--r--engines/scumm/he/script_v100he.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/engines/scumm/he/script_v100he.cpp b/engines/scumm/he/script_v100he.cpp
index 1551eca420..4dc2f1842f 100644
--- a/engines/scumm/he/script_v100he.cpp
+++ b/engines/scumm/he/script_v100he.cpp
@@ -2308,19 +2308,20 @@ void ScummEngine_v100he::o100_writeFile() {
byte subOp = fetchScriptByte();
+ assert(_hOutFileTable[slot]);
switch (subOp) {
case 5:
fetchScriptByte();
writeFileFromArray(slot, resID);
break;
case 42:
- _hFileTable[slot].writeUint16LE(resID);
+ _hOutFileTable[slot]->writeUint16LE(resID);
break;
case 43:
- _hFileTable[slot].writeUint32LE(resID);
+ _hOutFileTable[slot]->writeUint32LE(resID);
break;
case 45:
- _hFileTable[slot].writeByte(resID);
+ _hOutFileTable[slot]->writeByte(resID);
break;
default:
error("o100_writeFile: default case %d", subOp);
@@ -2618,17 +2619,20 @@ void ScummEngine_v100he::o100_readFile() {
break;
case 42:
slot = pop();
- val = _hFileTable[slot].readUint16LE();
+ assert(_hInFileTable[slot]);
+ val = _hInFileTable[slot]->readUint16LE();
push(val);
break;
case 43:
slot = pop();
- val = _hFileTable[slot].readUint32LE();
+ assert(_hInFileTable[slot]);
+ val = _hInFileTable[slot]->readUint32LE();
push(val);
break;
case 45:
slot = pop();
- val = _hFileTable[slot].readByte();
+ assert(_hInFileTable[slot]);
+ val = _hInFileTable[slot]->readByte();
push(val);
break;
default: