Skip to content

Commit

Permalink
Zeus - FIX ace_zeus_fnc_moduleSetMedicalVehicle setting wrong variable (
Browse files Browse the repository at this point in the history
#7107)

* FIX set medical vehicle zeus module

Since #6933 `isMedicalVehicle` should be use instead of `medicClass`

* isMedicalVehicle is a boolean

https://github.com/acemod/ACE3/blob/44050df98b00e579e5b5a79c0d76d4d1138b4baa/addons/medical_treatment/functions/fnc_isMedicalVehicle.sqf#L20
  • Loading branch information
Vdauphin authored and PabstMirror committed Jul 31, 2019
1 parent 06996d3 commit 66f62bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/zeus/functions/fnc_moduleSetMedicalVehicle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};
};
};
Expand Down

0 comments on commit 66f62bb

Please sign in to comment.