From 1337c2c5620009c3793cc5246c430c51de6ec655 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Tue, 20 Jan 2015 11:36:52 +0100 Subject: [PATCH] Made unit loop flag public --- addons/medical/functions/fnc_addToInjuredCollection.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/medical/functions/fnc_addToInjuredCollection.sqf b/addons/medical/functions/fnc_addToInjuredCollection.sqf index 780f6e80bf..ba2adcc482 100644 --- a/addons/medical/functions/fnc_addToInjuredCollection.sqf +++ b/addons/medical/functions/fnc_addToInjuredCollection.sqf @@ -17,7 +17,7 @@ if !(local _unit) exitwith{ }; if !(_unit getvariable[QGVAR(addedToUnitLoop),false]) then{ - _unit setvariable [QGVAR(addedToUnitLoop),true]; + _unit setvariable [QGVAR(addedToUnitLoop),true, true]; }; if ([_unit] call FUNC(hasMedicalEnabled)) then { @@ -28,4 +28,4 @@ if ([_unit] call FUNC(hasMedicalEnabled)) then { GVAR(injuredUnitCollection) pushback _unit; } else { systemChat format["has no medical system enabled: %1",_unit]; -}; \ No newline at end of file +};