Fix damaged array not being overwritten.

This fixes an issue were injured body parts were displayed as blue instead of red. Happens when using advanced medical with AI running in basic mode.
This commit is contained in:
Glowbal 2016-06-27 19:55:00 +02:00
parent 419b525458
commit 1d66d46501

View File

@ -129,7 +129,7 @@ if (_show) then {
};
} foreach _bandagedwounds;
} else {
private _damaged = [true, true, true, true, true, true];
_damaged = [true, true, true, true, true, true];
{
private _hitPoint = [_target, _x, true] call FUNC(translateSelections);
_selectionBloodLoss set [_forEachIndex, _target getHitPointDamage _hitPoint];