2
0
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:
theAsmodai 2015-12-04 19:53:20 +03:00
commit dd654c085b

View File

@ -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;