From 4633ec6e6a0aa66f27a78fddb9c00373c6069c63 Mon Sep 17 00:00:00 2001 From: avolkov Date: Sat, 25 Feb 2012 20:15:23 +0000 Subject: [PATCH] Prevent reads from uninitialized ship_footprint variable; bug #1150; thanks for Louis Delacroix git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3775 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/uqm/cyborg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/uqm/cyborg.c b/sc2/src/uqm/cyborg.c index 056c1b4e6..a50f3b8ca 100644 --- a/sc2/src/uqm/cyborg.c +++ b/sc2/src/uqm/cyborg.c @@ -1092,7 +1092,7 @@ if (!(ShipPtr->state_flags & FINITE_LIFE) if (GRAVITY_MASS (ed.ObjectPtr->mass_points)) { COUNT maneuver_turn, ship_bounds; - RECT ship_footprint; + RECT ship_footprint = {{0, 0}, {0, 0}}; if (UltraManeuverable) maneuver_turn = 16;