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

Fix: bug with removing slash in the path to resources

This commit is contained in:
s1lentq 2015-12-04 21:11:51 +06:00
parent beb1b7a583
commit 0d909ccf41

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