From 48a62eeee4480a7710c4bd240c0d49b0bfaa7d61 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 20 Oct 2024 00:21:48 +0200 Subject: [PATCH] fix a maybe-uninitialized warning --- src/r_things.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_things.c b/src/r_things.c index 68607f795..7867ea199 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -2527,8 +2527,8 @@ static boolean R_CheckSpriteVisible(vissprite_t *spr, INT32 x1, INT32 x2) INT16 sz = spr->sz; INT16 szt = spr->szt; - fixed_t texturemid, yscale, scalestep = spr->scalestep; - INT32 height; + fixed_t texturemid = 0, yscale = 0, scalestep = spr->scalestep; // "= 0" pleases the compiler + INT32 height = 0; if (scalestep) {