From 123fe48cad3e09e9fc129a95773492883604dfe8 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 15 Apr 2025 16:27:03 +0200 Subject: [PATCH] simplify this --- src/w_wad.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/w_wad.c b/src/w_wad.c index 4d8e24a93..2e7f2cee4 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1780,7 +1780,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 @@ -1843,9 +1843,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);