From 419af195e95140958a0d2ec1d2cc77286486323d Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 1 Dec 2015 13:43:27 -0600 Subject: [PATCH] #2902 - Remove error and don't exit if veh has no hit points B_UAV_01_F has no hitpoints and would throw error Don't exit so "fullRepair" action still gets added --- addons/repair/functions/fnc_addRepairActions.sqf | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/repair/functions/fnc_addRepairActions.sqf b/addons/repair/functions/fnc_addRepairActions.sqf index c46eb66e75b..1a9055d3e29 100644 --- a/addons/repair/functions/fnc_addRepairActions.sqf +++ b/addons/repair/functions/fnc_addRepairActions.sqf @@ -32,8 +32,6 @@ if (_type in _initializedClasses) exitWith {}; // get all hitpoints and selections (getAllHitPointsDamage _vehicle) params [["_hitPoints", []], ["_hitSelections", []]]; -if (_hitSelections isEqualTo []) exitWith { ACE_LOGERROR_1("No hit selections (%1)", _type); }; - // get hitpoints of wheels with their selections ([_vehicle] call FUNC(getWheelHitPointsWithSelections)) params ["_wheelHitPoints", "_wheelHitSelections"];