Zeus - FIX ace_zeus_fnc_moduleSetMedicalVehicle setting wrong variable (#7107)

* FIX set medical vehicle zeus module

Since https://github.com/acemod/ACE3/pull/6933 `isMedicalVehicle` should be use instead of `medicClass`

* isMedicalVehicle is a boolean

44050df98b/addons/medical_treatment/functions/fnc_isMedicalVehicle.sqf (L20)
This commit is contained in:
Vdauphin 2019-07-31 18:20:27 +02:00 committed by PabstMirror
parent 06996d30e1
commit 66f62bb1a2

View File

@ -40,9 +40,9 @@ if !(["ACE_Medical"] call EFUNC(common,isModLoaded)) then {
if (GETVAR(_unit,EGVAR(captives,isHandcuffed),false)) then {
[LSTRING(OnlyNonCaptive)] call FUNC(showMessage);
} else {
private _medicN = GETVAR(_unit,EGVAR(medical,medicClass),0);
if (_medicN < 1) then {
_unit setVariable [QEGVAR(medical,medicClass), 1, true];
private _medicN = GETVAR(_unit,EGVAR(medical,isMedicalVehicle),false);
if !(_medicN) then {
_unit setVariable [QEGVAR(medical,isMedicalVehicle), true, true];
};
};
};