mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-06 03:55:32 +03:00
Fix: bug with removing slash in the path to resources
This commit is contained in:
parent
beb1b7a583
commit
0d909ccf41
@ -279,7 +279,7 @@ model_t *Mod_LoadModel(model_t *mod, qboolean crash, qboolean trackCRC)
|
|||||||
if (COM_CheckParm("-steam") && mod->name[0] == '/')
|
if (COM_CheckParm("-steam") && mod->name[0] == '/')
|
||||||
{
|
{
|
||||||
char* p = mod->name;
|
char* p = mod->name;
|
||||||
while (*(p++) == '/')
|
while (*(++p) == '/')
|
||||||
;
|
;
|
||||||
|
|
||||||
Q_strncpy(tmpName, p, sizeof(tmpName) - 1);
|
Q_strncpy(tmpName, p, sizeof(tmpName) - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user