From db3455cbb7f9301929da7460128cdfbb9f9764de Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 15 Jul 2023 22:03:33 +0200 Subject: [PATCH] Update cmodel_bsp.cpp --- r5dev/engine/cmodel_bsp.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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/'.