From 603267b753ff60eaefdf9fcff7686828ed67c912 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 27 May 2025 22:04:59 +0200 Subject: [PATCH] fix W_CheckNumForFolderStartPK3 --- src/w_wad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/w_wad.c b/src/w_wad.c index e8910e098..0bb741a59 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1094,10 +1094,10 @@ UINT16 W_CheckNumForFolderStartPK3(const char *name, UINT16 wad, UINT16 startlum /* SLADE is special and puts a single directory entry. Skip that. */ if (strlen(lump_p->fullname) == name_length) i++; - break; + return i; } } - return i; + return INT16_MAX; } // In a PK3 type of resource file, it looks for the next lumpinfo entry that doesn't share the specified pathfile.