From e003ef04a2c44301a843124b253d91aec95295f8 Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Tue, 2 Feb 2016 02:17:19 +0300 Subject: [PATCH] Fix slashes in seqgroup filename --- rehlds/engine/pr_cmds.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rehlds/engine/pr_cmds.cpp b/rehlds/engine/pr_cmds.cpp index dc7244f..db2e8cb 100644 --- a/rehlds/engine/pr_cmds.cpp +++ b/rehlds/engine/pr_cmds.cpp @@ -1481,7 +1481,11 @@ int EXT_FUNC PF_precache_model_I(const char *s) if (pSeqGroup->name[0] == '\0') continue; - PF_precache_generic_I(pSeqGroup->name); + char seqGroupName[MAX_QPATH]; + Q_strcpy(seqGroupName, pSeqGroup->name); + ForwardSlashes(seqGroupName); + + PF_precache_generic_I(seqGroupName); } } }