diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 6f3fc797f..97f6d9795 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4423,7 +4423,7 @@ static void HWR_AddPrecipitationSprites(void) { for (by = yl; by <= yh; by++) { - for (th = precipblocklinks[(by * bmapwidth) + bx]; th; th = th->bnext) + for (th = precipblocklinks[(by * bmapwidth) + bx]; th; th = next) { // Store this beforehand because HWR_ProjectPrecipitationSprite may free th (see P_PrecipThinker) next = th->bnext;