From b36ebc294fc29583532c0f59ca0fecb675ac6ff7 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 22 Dec 2022 10:54:08 +0300 Subject: [PATCH] filesystem: dir: exit from loop immediately if directory is caseinsensitive --- filesystem/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/filesystem/dir.c b/filesystem/dir.c index 394eae79..34b0fce7 100644 --- a/filesystem/dir.c +++ b/filesystem/dir.c @@ -234,6 +234,7 @@ qboolean FS_FixFileCase( dir_t *dir, const char *path, char *dst, size_t len, qb Con_Printf( "%s: overflow while searching %s (caseinsensitive entry)\n", __FUNCTION__, path ); return false; } + break; } // populate cache if needed