Medical AI - Fix specific treatment items not being removed (#10179)

Fix treatment items not being removed

Bug introduced in #10158
This commit is contained in:
johnb432 2024-08-10 19:19:36 +02:00 committed by GitHub
parent 9e4bcc5d72
commit d7c98ea366
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,9 +37,10 @@ if (_finishTime > 0) exitWith {
_treatmentEvent = "#fail"; _treatmentEvent = "#fail";
}; };
_healer removeItem _itemClassname;
_usedItem = _itemClassname;
if (_treatmentClass != "") then { if (_treatmentClass != "") then {
_healer removeItem _itemClassname;
_usedItem = _itemClassname;
_treatmentArgs set [2, _treatmentClass]; _treatmentArgs set [2, _treatmentClass];
}; };
}; };