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
master
Cyp 2010-01-23 11:30:21 +00:00 committed by Git SVN Gateway
parent cdb554ab58
commit a053ec980b
1 changed files with 3 additions and 0 deletions

View File

@ -2074,6 +2074,9 @@ STRUCTURE *buildBlueprint(STRUCTURE_STATS *psStats, float x, float y, STRUCT_STA
blueprint->direction = 0; blueprint->direction = 0;
blueprint->selected = false; blueprint->selected = false;
blueprint->timeLastHit = 0;
blueprint->lastHitWeapon = UDWORD_MAX; // Noone attacked the blueprint. Do not render special effects.
blueprint->numWeaps = 0; blueprint->numWeaps = 0;
blueprint->asWeaps[0].nStat = 0; blueprint->asWeaps[0].nStat = 0;