From 56c5e367ab1dc8900ccdffd367d9b14675ce98d8 Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 7 Aug 2023 13:39:30 -0700 Subject: [PATCH] K_drawKartSlotMachine: fix uninitialized variable This caused the Ring Box HUD to disappear whenever the player was turning. But I'm the only one who got this behavior. Funny how undefined behavior works. --- src/k_hud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_hud.c b/src/k_hud.c index 6706880d4..77ef7ab9b 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -1614,7 +1614,7 @@ static void K_drawKartSlotMachine(void) INT32 boxoffy = -6; INT32 vstretch = 0; INT32 hstretch = 3; - INT32 splitbsx, splitbsy = 0; + INT32 splitbsx = 0, splitbsy = 0; UINT16 localcolor[3] = { stplyr->skincolor }; SINT8 colormode[3] = { TC_RAINBOW };