From a053ec980b23eef68fcfe9d90c42b17c38609b7e Mon Sep 17 00:00:00 2001 From: Cyp Date: Sat, 23 Jan 2010 11:30:21 +0000 Subject: [PATCH] structure.c: Set timeLastHit and lastHitWeapon, to silence one valgrind warning. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9416 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/structure.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/structure.c b/src/structure.c index 9ccf66b58..944216a8c 100644 --- a/src/structure.c +++ b/src/structure.c @@ -2074,6 +2074,9 @@ STRUCTURE *buildBlueprint(STRUCTURE_STATS *psStats, float x, float y, STRUCT_STA blueprint->direction = 0; blueprint->selected = false; + blueprint->timeLastHit = 0; + blueprint->lastHitWeapon = UDWORD_MAX; // Noone attacked the blueprint. Do not render special effects. + blueprint->numWeaps = 0; blueprint->asWeaps[0].nStat = 0;