mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#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:
parent
dacfe4d6cb
commit
419af195e9
@ -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"];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user