Fix removeAction for salvage and repair

This commit is contained in:
AirwavesMan
2021-03-29 08:58:45 +02:00
parent c4e5b2a56b
commit e4458a24e3
2 changed files with 3 additions and 3 deletions

View File

@@ -2,11 +2,11 @@ private ["_part","_cancel","_color","_string","_handle","_damage","_cmpt","_vehi
_vehicle = _this select 3;
dayz_myCursorTarget = _vehicle;
{dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
_hitpoints = _vehicle call vehicle_getHitpoints;
if (count _hitpoints < 1) exitwith {};
{dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
{
_hitpoint = _x;