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-861f7616d084master
parent
cdb554ab58
commit
a053ec980b
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue