From 1aeccac35805a6d170e5a37665bbacfc5b9d63b0 Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Wed, 18 Jan 2023 23:01:50 +0300 Subject: [PATCH] LOC_LoadFile: Fix UTF-8 BOM check --- Quake/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quake/common.c b/Quake/common.c index 702eb2c9..c604a0a7 100644 --- a/Quake/common.c +++ b/Quake/common.c @@ -2607,7 +2607,7 @@ fail: mz_zip_reader_end(&archive); cursor = localization.text; // skip BOM - if ((unsigned char)(cursor[0]) == 0xEF && (unsigned char)(cursor[1]) == 0xBB && cursor[2] == 0xB) + if ((unsigned char)(cursor[0]) == 0xEF && (unsigned char)(cursor[1]) == 0xBB && (unsigned char)(cursor[2]) == 0xBF) cursor += 3; lineno = 0;