diff --git a/src/w_wad.c b/src/w_wad.c index 524bd97de..7e1ec30df 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1998,7 +1998,7 @@ void *W_CachePatchNameRotated(const char *name, INT32 rotationangle, INT32 tag) rspr = (rotsprite_t *)W_GetCachedRotPatchPwad(WADFILENUM(num),LUMPNUM(num)); if (rspr == NULL) - return W_CachePatchNum(num, tag); + return W_CachePatchNum(W_GetNumForName("MISSING"), tag); if (rspr->patches[idx] == NULL) { @@ -2006,7 +2006,7 @@ void *W_CachePatchNameRotated(const char *name, INT32 rotationangle, INT32 tag) ptr = (patch_t *)W_CachePatchNum(num, PU_PATCH); if (ptr == NULL) - return W_CachePatchNum(num, tag); + return W_CachePatchNum(W_GetNumForName("MISSING"), tag); // >y pivot centered // >x pivot not centered