From 092fd961456ff20026886c6f30d2c6c00d532165 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 26 Apr 2006 14:05:09 +0000 Subject: Replaced _hFileTable by _hInFileTable/_hOutFileTable svn-id: r22182 --- engines/scumm/he/script_v100he.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'engines/scumm/he/script_v100he.cpp') 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: -- cgit v1.2.3