From 1e6c401e969ec58e8531e1bed170e3f6b43dfc3e Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 27 Mar 2024 03:43:10 -0700 Subject: [PATCH] Y_DrawVoteBackground: use unsigned type to avoid negative modulo into underflow - Fixes a rare crash if the vote screen has been present enough times --- src/k_vote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_vote.c b/src/k_vote.c index 3537ca87a..7381d6e98 100644 --- a/src/k_vote.c +++ b/src/k_vote.c @@ -660,7 +660,7 @@ static void Y_DrawCatcher(y_vote_catcher *catcher) // static void Y_DrawVoteBackground(void) { - static fixed_t bgTimer = 0; + static UINT32 bgTimer = 0; static fixed_t derrPos = 0; const fixed_t derrLoop = vote_draw.bg_derrText->width * FRACUNIT;