diff options
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/charset.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/charset.cpp b/engines/scumm/charset.cpp index 8a1a27b333..a8f780ac49 100644 --- a/engines/scumm/charset.cpp +++ b/engines/scumm/charset.cpp @@ -313,7 +313,7 @@ byte *ScummEngine::get2byteCharPtr(int idx) { memcpy(_2byteFontPtr, charsetPtr + 46, _2byteWidth * _2byteHeight * numChar / 8); } - idx = ((idx & 0x7F) << 8) | ((idx >> 8) & 0xFF) - 1; + idx = (SWAP_CONSTANT_16(idx) & 0x7fff) - 1; } else { idx = SJIStoFMTChunk((idx % 256), (idx / 256)); } |