From 97f87827f40350165c894c2b17bda24e9c193df9 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Thu, 22 Dec 2016 19:42:00 -0500 Subject: [PATCH] hardware: init undef vars in HWR_SortVisSprites --- src/hardware/hw_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 5251e0b3..20eadf65 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4501,8 +4501,8 @@ static void HWR_SortVisSprites(void) gr_vissprite_t *ds, *dsprev, *dsnext, *dsfirst; gr_vissprite_t *best = NULL; gr_vissprite_t unsorted; - float bestdist; - INT32 bestdispoffset; + float bestdist = 0.0f; + INT32 bestdispoffset = 0; if (!gr_visspritecount) return;