From f7494fedd58b43319a86000ebf3776de3c4c9599 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 22 Dec 2024 01:44:25 +0100 Subject: [PATCH] do the same for R_ProjectPrecipitationSprite --- src/r_things.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/r_things.c b/src/r_things.c index 50f6b3016..b48b0e376 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1817,6 +1817,9 @@ static void R_ProjectPrecipitationSprite(precipmobj_t *thing) INT32 dist = 1; + if (!thing || thing->subsector == NULL) + return; + if (cv_maxinterpdist.value) dist = R_QuickCamDist(thing->x, thing->y);