simplify this

This commit is contained in:
Alug committed 2025-04-15 16:27:03 +02:00
1 parent 71e9e040ec
commit afd0613199
1 file changed
+2 -4
+2 -4
View File
@@ -1789,7 +1789,7 @@ void *W_CachePatchNumPwad(UINT16 wad, UINT16 lump, INT32 tag)
if (!TestValidLump(wad, lump))
return NULL;
patch = W_CacheSoftwarePatchNumPwad(wad, lump, tag);
patch = (patch_t *)W_CacheSoftwarePatchNumPwad(wad, lump, tag);
#ifdef HWRENDER
// Software-only compile cache the data without conversion
@@ -1852,9 +1852,7 @@ void *W_CachePatchName(const char *name, INT32 tag)
{
lumpnum_t num;
const char *finalname = name;
num = W_CheckNumForName(finalname);
num = W_CheckNumForName(name);
if (num == LUMPERROR)
return W_CachePatchNum(W_GetNumForName("MISSING"), tag);