Merge pull request #2906 from acemod/fixRepairWithNoHitpoints

Remove error and don't exit if veh has no hit points
This commit is contained in:
Thomas Kooi 2015-12-01 20:45:56 +01:00
commit 80463aff73

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