mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-17 17:17:56 +03:00
Merge pull request #101 from s1lentq/master
Fix: bug with removing slash in the path to resources
This commit is contained in:
commit
faf1281dc9
@ -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…
x
Reference in New Issue
Block a user