2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-17 09:07:54 +03:00

Merge pull request #101 from s1lentq/master

Fix: bug with removing slash in the path to resources
This commit is contained in:
theAsmodai 2015-12-04 19:02:24 +03:00
commit faf1281dc9

View File

@ -279,7 +279,7 @@ model_t *Mod_LoadModel(model_t *mod, qboolean crash, qboolean trackCRC)
if (COM_CheckParm("-steam") && mod->name[0] == '/')
{
char* p = mod->name;
while (*(p++) == '/')
while (*(++p) == '/')
;
Q_strncpy(tmpName, p, sizeof(tmpName) - 1);