2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Fix: skip bytes BOM signature in SV_CreateGenericResources

This commit is contained in:
s1lentq 2015-12-04 22:23:05 +06:00
parent faf1281dc9
commit 5dcfd505c3

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;