mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix IvBags in displayPatientInformation
This commit is contained in:
parent
e667931626
commit
fdb14cea20
@ -77,11 +77,9 @@ if (_show == 1) then {
|
||||
|
||||
private _totalIvVolume = 0;
|
||||
{
|
||||
private _value = _target getVariable _x;
|
||||
if !(isnil "_value") then {
|
||||
_totalIvVolume = _totalIvVolume + (_target getVariable [_x, 0]);
|
||||
};
|
||||
} foreach EGVAR(medical,IVBags);
|
||||
_x params ["_xVolumeAdded"];
|
||||
_totalIvVolume = _totalIvVolume + _xVolumeAdded;
|
||||
} foreach (_target getVariable [QEGVAR(medical,ivBags), []]);
|
||||
|
||||
if (_totalIvVolume >= 1) then {
|
||||
_genericMessages pushback [format[localize ELSTRING(medical,receivingIvVolume), floor _totalIvVolume], [1, 1, 1, 1]];
|
||||
|
Loading…
Reference in New Issue
Block a user