Fix the directory prefix when using filters for FS_ListFilteredFiles

This commit is contained in:
smallmodel 2024-10-29 20:25:25 +01:00
parent 48fa5c0ce6
commit 9cd8133068
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -2418,7 +2418,7 @@ char **FS_ListFilteredFiles( const char *path, const char *extension, const char
//
if (filter) {
if (zpathLen) {
strcpy(zpath, name + pathLength + 1);
strcpy(zpath, name + zpathLen + 1);
}
else {
strcpy(zpath, name);