aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-08-14 00:41:10 +0000
committerTravis Howell2005-08-14 00:41:10 +0000
commit292c9d63d6399c6f3c301f059badb40e0affa49b (patch)
treebf044931ed1580b503668c4749a3d6810a8d7773 /scumm
parent8c4494578e8273841473934facb68e6476ee16ac (diff)
downloadscummvm-rg350-292c9d63d6399c6f3c301f059badb40e0affa49b.tar.gz
scummvm-rg350-292c9d63d6399c6f3c301f059badb40e0affa49b.tar.bz2
scummvm-rg350-292c9d63d6399c6f3c301f059badb40e0affa49b.zip
Fix regression in fbpack
svn-id: r18678
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v6he.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp
index 2746a858ae..208696f000 100644
--- a/scumm/script_v6he.cpp
+++ b/scumm/script_v6he.cpp
@@ -1165,6 +1165,7 @@ void ScummEngine_v60he::o60_localizeArrayToScript() {
void ScummEngine_v60he::o60_seekFilePos() {
int mode, offset, slot;
+
mode = pop();
offset = pop();
slot = pop();
@@ -1173,13 +1174,13 @@ void ScummEngine_v60he::o60_seekFilePos() {
return;
switch (mode) {
- case 0:
+ case 1:
_hFileTable[slot].seek(offset, SEEK_SET);
break;
- case 1:
+ case 2:
_hFileTable[slot].seek(offset, SEEK_CUR);
break;
- case 2:
+ case 3:
_hFileTable[slot].seek(offset, SEEK_END);
break;
default: