From db6a9839fe63935e42dab3c12608226706608a5e Mon Sep 17 00:00:00 2001 From: nillerusr Date: Mon, 20 Feb 2023 22:02:37 +0300 Subject: [PATCH] engine: fix windows build( windows must die ) --- engine/modelloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/modelloader.cpp b/engine/modelloader.cpp index be833736..3070dc55 100644 --- a/engine/modelloader.cpp +++ b/engine/modelloader.cpp @@ -5449,8 +5449,8 @@ bool CModelLoader::Map_IsValid( char const *pMapFile, bool bQuiet /* = false */ V_strcpy_safe( szMapFile, szMapName360 ); } - bool bHaveBspFormatInPath = strcasestr(szMapFile, ".bsp"); - bool bHaveMapsInPath = strcasestr(szMapFile, "maps/"); + bool bHaveBspFormatInPath = strstr(szMapFile, ".bsp"); + bool bHaveMapsInPath = strstr(szMapFile, "maps/"); if( !bHaveMapsInPath ) snprintf(szMapFile, sizeof(szMapFile), "maps/%s", pMapFile);