Fix NULL lump name guard in W_CheckNumForMap
This commit is contained in:
1 parent
e5159e13dd
commit
afb96c60cb
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user