From 0d909ccf41d4f920388f61f23119e134703dd2af Mon Sep 17 00:00:00 2001 From: s1lentq Date: Fri, 4 Dec 2015 21:11:51 +0600 Subject: [PATCH] Fix: bug with removing slash in the path to resources --- rehlds/engine/model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rehlds/engine/model.cpp b/rehlds/engine/model.cpp index 6dfdfe8..49e57ae 100644 --- a/rehlds/engine/model.cpp +++ b/rehlds/engine/model.cpp @@ -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);