aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/utils.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-12-04 16:36:13 +0100
committerEugene Sandulenko2016-12-04 16:36:13 +0100
commit81c8f0558f8b0872318279c18f6c3354519b0c50 (patch)
tree6420080b16fdb303bd8211ccca5b740e2f728030 /engines/fullpipe/utils.cpp
parent208f4e558fb150f606a50cb3ded9d545eba8ab02 (diff)
downloadscummvm-rg350-81c8f0558f8b0872318279c18f6c3354519b0c50.tar.gz
scummvm-rg350-81c8f0558f8b0872318279c18f6c3354519b0c50.tar.bz2
scummvm-rg350-81c8f0558f8b0872318279c18f6c3354519b0c50.zip
FULLPIPE: Fix another warning
Diffstat (limited to 'engines/fullpipe/utils.cpp')
-rw-r--r--engines/fullpipe/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index ac6b20339d..cc85886a0f 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -533,9 +533,9 @@ byte *transCyrillic(byte *s) {
#ifdef WIN32
// translate from cp1251 to cp866
byte c = *p;
- if (c >= 0xC0)
+ if (c >= 0xC0 && c <= 0xEF)
c = c - 0xC0 + 0x80;
- else if (c >= 0xF0 && c <= 0xFF)
+ else if (c >= 0xF0)
c = c - 0xF0 + 0xE0;
else if (c == 0xA8)
c = 0xF0;