diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 62988ceef..062edcb2a 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4453,7 +4453,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;