Skip to content

Commit

Permalink
WE HATE TAB
Browse files Browse the repository at this point in the history
  • Loading branch information
Apricot-ale committed Dec 25, 2024
1 parent b2ba5df commit 8af54a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions addons/medical_treatment/functions/fnc_onMedicationUsage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ if (_maxDose > 0) then {
// Check incompatible medication (format [med,limit])
if (typeName _array != "ARRAY" || _incompatibleMedication isEqualTo []) exitWith {};
{
_x params ["_xMed", "_xLimit"];
private _inSystem = ([_target, _xMed] call EFUNC(medical_status,getMedicationCount)) select 0;
if (_inSystem > _xLimit) then {
[_target, _classname, _inSystem, _xLimit, _xMed] call FUNC(overDose);
};
_x params ["_xMed", "_xLimit"];
private _inSystem = ([_target, _xMed] call EFUNC(medical_status,getMedicationCount)) select 0;
if (_inSystem > _xLimit) then {
[_target, _classname, _inSystem, _xLimit, _xMed] call FUNC(overDose);
};
} forEach _incompatibleMedication;

0 comments on commit 8af54a2

Please sign in to comment.