mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
Merge pull request #102 from s1lentq/master
Fix: skip BOM signature in SV_CreateGenericResources
This commit is contained in:
commit
dd654c085b
@ -4945,7 +4945,12 @@ void SV_CreateGenericResources(void)
|
||||
if (buffer == NULL)
|
||||
return;
|
||||
|
||||
data = buffer;
|
||||
// skip bytes BOM signature
|
||||
if ((byte)buffer[0] == 0xEFu && (byte)buffer[1] == 0xBBu && (byte)buffer[2] == 0xBFu)
|
||||
data = &buffer[3];
|
||||
else
|
||||
data = buffer;
|
||||
|
||||
Con_DPrintf("Precaching from %s\n", filename);
|
||||
Con_DPrintf("----------------------------------\n");
|
||||
g_psv.num_generic_names = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user