Fix long names using the wrong hash field
This commit is contained in:
1 parent
397fa962b1
commit
7cf3113d67
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user