Fix NULL lump name guard in W_CheckNumForMap

This commit is contained in:
Alug committed 2024-07-28 18:40:58 +02:00
1 parent e5159e13dd
commit afb96c60cb
1 file changed
+1 -1
+1 -1
View File
@@ -1192,7 +1192,7 @@ lumpnum_t W_CheckNumForLongName(const char *name)
// TODO: Make it search through cache first, maybe...?
lumpnum_t W_CheckNumForMap(const char *name)
{
UINT32 hash = quickncasehash(name, 8);
UINT32 hash = name ? quickncasehash(name, 8) : 0;
UINT16 lumpNum, end;
UINT32 i;
lumpinfo_t *p;