Make this use helper function
This commit is contained in:
parent
2419e25327
commit
2a763d24ba
1 changed files with 3 additions and 3 deletions
|
|
@ -1562,9 +1562,9 @@ lumpnum_t W_CheckNumForMap(const char *name, boolean checktofirst)
|
|||
|
||||
// Check the lumpnumcache first. Loop backwards so that we check
|
||||
// most recent entries first
|
||||
auto it = lumpnumcache.find(name);
|
||||
if (it != lumpnumcache.end())
|
||||
return it->second;
|
||||
lumpnum_t cachenum = CheckLumpInCache(name);
|
||||
if (cachenum != LUMPERROR)
|
||||
return cachenum;
|
||||
|
||||
uhash = W_HashLumpName(name, strlen(name)); // Not a mistake, legacy system for short lumpnames
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue