diff --git a/src/r_things.c b/src/r_things.c
index be9c5cdffe26be0a5482489d9540a50a2a599998..8fabb8027fbd5c172f3e51d94ee0e883d565aa8a 100644
--- a/src/r_things.c
+++ b/src/r_things.c
@@ -3201,8 +3201,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)
 	{