Skip to content

Commit

Permalink
Fix treatment items not being removed
Browse files Browse the repository at this point in the history
Bug introduced in #10158
  • Loading branch information
johnb432 committed Aug 10, 2024
1 parent b2a3fac commit 7cef828
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/medical_ai/functions/fnc_healingLogic.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ if (_finishTime > 0) exitWith {
_treatmentEvent = "#fail";
};

_healer removeItem _itemClassname;
_usedItem = _itemClassname;

if (_treatmentClass != "") then {
_healer removeItem _itemClassname;
_usedItem = _itemClassname;
_treatmentArgs set [2, _treatmentClass];
};
};
Expand Down

0 comments on commit 7cef828

Please sign in to comment.