|
From: <av...@us...> - 2012-02-25 20:15:30
|
Revision: 3775
http://sc2.svn.sourceforge.net/sc2/?rev=3775&view=rev
Author: avolkov
Date: 2012-02-25 20:15:23 +0000 (Sat, 25 Feb 2012)
Log Message:
-----------
Prevent reads from uninitialized ship_footprint variable; bug #1150; thanks for Louis Delacroix
Modified Paths:
--------------
trunk/sc2/src/uqm/cyborg.c
Modified: trunk/sc2/src/uqm/cyborg.c
===================================================================
--- trunk/sc2/src/uqm/cyborg.c 2012-02-25 19:33:43 UTC (rev 3774)
+++ trunk/sc2/src/uqm/cyborg.c 2012-02-25 20:15:23 UTC (rev 3775)
@@ -1092,7 +1092,7 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|