Skip to content

Commit

Permalink
Medical / Medical Treatment - Fix bad params for fnc_fullHeal (#10607)
Browse files Browse the repository at this point in the history
  • Loading branch information
DartRuffian authored Dec 28, 2024
1 parent 4903e85 commit 590bfcd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_fullHeal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ if (!alive _patient) exitWith {
ERROR_2("fullHeal [medic %1][patient %2] Patient is dead or null",_medic,_patient);
};

[_medic, _patient, _logMessage] call EFUNC(medical_treatment,fullHeal);
[_medic, _patient, "", "", objNull, "", _logMessage] call EFUNC(medical_treatment,fullHeal);
10 changes: 8 additions & 2 deletions addons/medical_treatment/functions/fnc_fullHeal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
* Arguments:
* 0: Medic <OBJECT>
* 1: Patient <OBJECT>
* 2: Write message to patient log <BOOL> (default: true)
* 2: Body Part (unused) <STRING>
* 3: Treatment (unused) <STRING>
* 4: Item User (unused) <OBJECT>
* 5: Used Item (unused) <STRING>
* 6: Create litter (unused) <BOOLEAN>
* 7: Write message to patient log <BOOL> (default: true)
*
* Return Value:
* None
Expand All @@ -17,7 +22,8 @@
* Public: No
*/

params ["_medic", "_patient", ["_logMessage", true]];
params ["_medic", "_patient", "", "", "", "", ["_logMessage", true]];
TRACE_3("fullHeal",_medic,_patient,_logMessage);

if (_logMessage) then {
[_patient, "activity", LSTRING(Activity_fullHeal), [[_medic, false, true] call EFUNC(common,getName)]] call FUNC(addToLog);
Expand Down

0 comments on commit 590bfcd

Please sign in to comment.