Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/medical_treatment/functions/fnc_treatment.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private _config = configFile >> QGVAR(actions) >> _classname;

// Get treatment time from config, exit if treatment time is zero
private _medicRequiredLevel = GET_NUMBER_ENTRY(_config >> "medicRequired");
private _treatmentTimeConfig = ["treatmentTime", "treatmentTimeTrained"] select (([_medic, (_medicRequiredLevel + 1)] call FUNC(isMedic)) && {!isNull (_config >> "treatmentTimeTrained")});
private _treatmentTimeConfig = ["treatmentTime", "treatmentTimeTrained"] select (([_medic, (_medicRequiredLevel)] call FUNC(isMedic)) && {!isNull (_config >> "treatmentTimeTrained")});
private _treatmentTime = if (isText (_config >> _treatmentTimeConfig)) then {
GET_FUNCTION(_treatmentTime,_config >> _treatmentTimeConfig);

Expand Down