diff --git a/r5dev/engine/cmodel_bsp.cpp b/r5dev/engine/cmodel_bsp.cpp index 7c7380dc..19562068 100644 --- a/r5dev/engine/cmodel_bsp.cpp +++ b/r5dev/engine/cmodel_bsp.cpp @@ -57,9 +57,7 @@ void Mod_GetAllInstalledMaps() FOR_EACH_VEC(fileList, i) { const CUtlString& filePath = fileList[i]; - - const char* pFilePath = filePath.Get(); - const char* pFileName = strrchr(pFilePath, '/')+1; + const char* pFileName = strrchr(filePath.Get(), '/')+1; // Should always point right in front of the last // slash, as the files are loaded from 'vpk/'.