From 33c600dde53c19a76297f2d3a2ffb4d1eb0d31f8 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sun, 27 Apr 2003 09:39:52 +0000 Subject: and more share code svn-id: r7150 --- scumm/script.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scumm/script.cpp') diff --git a/scumm/script.cpp b/scumm/script.cpp index 2423774954..6828c7c7ac 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -336,7 +336,6 @@ int Scumm::getVarOrDirectByte(byte mask) { return readVar(fetchScriptByte()); else return readVar(fetchScriptWord()); - return fetchScriptByte(); } @@ -346,7 +345,7 @@ int Scumm::getVarOrDirectWord(byte mask) { return readVar(fetchScriptByte()); else return readVar(fetchScriptWord()); - return fetchScriptWord(); + return (int16)fetchScriptWord(); } #ifndef BYPASS_COPY_PROT -- cgit v1.2.3