Autoload: dont attempt to load directories

lol
This commit is contained in:
alufolie91 committed 2026-03-01 01:04:14 +01:00
1 parent e8c7cc6a9b
commit 1a9fa94cbd
1 file changed
+6
+6
View File
@@ -1054,6 +1054,12 @@ static void D_AutoloadFile(const char *file, char **filearray, size_t *index)
return;
}
if (fileType == 1)
{
CONS_Printf("D_AutoloadFile: File %s is a directory\n", file);
return;
}
if (fileType <= 6)
{
newfile = malloc(strlen(file) + 1);