Fix long names using the wrong hash field

This commit is contained in:
Gustaf Alhäll authored and Alug committed 2025-05-28 17:47:25 +02:00
1 parent 397fa962b1
commit 7cf3113d67
1 file changed
+1 -1
+1 -1
View File
@@ -1062,7 +1062,7 @@ UINT16 W_CheckNumForLongNamePwad(const char *name, UINT16 wad, UINT16 startlump)
lumpinfo_t *lump_p = wadfiles[wad]->lumpinfo + startlump;
for (i = startlump; i < wadfiles[wad]->numlumps; i++, lump_p++)
if (lump_p->longnamelength == namelen
&& lump_p->hash.name == hash
&& lump_p->hash.longname == hash
&& !stricmp(lump_p->longname, name))
return i;
}