aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v7he.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index 5b4c3ef07e..1b2af19821 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -416,16 +416,15 @@ int ScummEngine_v7he::getCharsetOffset(int letter) {
return 0;
ptr += offset;
-
result = READ_LE_UINT16(ptr + 2);
byte start = *ptr;
- if (result >= 0x80) {
+ if (result >= 0x80)
result = (result & 0xff) - 256 + start;
- } else {
- result += start;
- };
- return (result);
+ else
+ result = (result & 0xff) + start;
+
+ return result;
}
void ScummEngine_v7he::o7_cursorCommand() {