#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
This commit is contained in:
PabstMirror 2015-12-01 13:43:27 -06:00
parent dacfe4d6cb
commit 419af195e9

View File

@ -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"];