From ab045e49c85f926022b1675f6e24d93fcb7e5d0f Mon Sep 17 00:00:00 2001 From: Glowbal Date: Sun, 22 Feb 2015 00:45:58 +0100 Subject: [PATCH] Fixed incorrect function calls for location --- addons/medical/functions/fnc_treatment.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/medical/functions/fnc_treatment.sqf b/addons/medical/functions/fnc_treatment.sqf index 39760578a0..a0cad72291 100644 --- a/addons/medical/functions/fnc_treatment.sqf +++ b/addons/medical/functions/fnc_treatment.sqf @@ -44,8 +44,8 @@ if ("All" in _locations) exitwith {true}; _return = false; { if (_x == "field") exitwith {_return = true;}; - if (_x == "MedicalFacility" && {[_caller, _target] call FUNC(inMedicalFacility)}) exitwith {_return = true;}; - if (_x == "MedicalVehicle" && {[_caller, _target] call FUNC(inMedicalVehicle)}) exitwith {_return = true;}; + if (_x == "MedicalFacility" && {([_caller] call FUNC(isInMedicalFacility)) || ([_target] call FUNC(isInMedicalFacility))}) exitwith {_return = true;}; + if (_x == "MedicalVehicle" && {([vehicle _caller] call FUNC(isMedicalVehicle)) || ([vehicle _target] call FUNC(isMedicalVehicle))}) exitwith {_return = true;}; }foreach _locations; if !(_return) exitwith {false};