mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
LOC_LoadFile: Fix UTF-8 BOM check
This commit is contained in:
parent
c5130f23a0
commit
1aeccac358
1 changed files with 1 additions and 1 deletions
|
@ -2607,7 +2607,7 @@ fail: mz_zip_reader_end(&archive);
|
||||||
cursor = localization.text;
|
cursor = localization.text;
|
||||||
|
|
||||||
// skip BOM
|
// 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;
|
cursor += 3;
|
||||||
|
|
||||||
lineno = 0;
|
lineno = 0;
|
||||||
|
|
Loading…
Reference in a new issue