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
This commit is contained in:
@@ -1092,7 +1092,7 @@ if (!(ShipPtr->state_flags & FINITE_LIFE)
|
|||||||
if (GRAVITY_MASS (ed.ObjectPtr->mass_points))
|
if (GRAVITY_MASS (ed.ObjectPtr->mass_points))
|
||||||
{
|
{
|
||||||
COUNT maneuver_turn, ship_bounds;
|
COUNT maneuver_turn, ship_bounds;
|
||||||
RECT ship_footprint;
|
RECT ship_footprint = {{0, 0}, {0, 0}};
|
||||||
|
|
||||||
if (UltraManeuverable)
|
if (UltraManeuverable)
|
||||||
maneuver_turn = 16;
|
maneuver_turn = 16;
|
||||||
|
|||||||
Reference in New Issue
Block a user