Skip to content

Commit

Permalink
Merge pull request #2906 from acemod/fixRepairWithNoHitpoints
Browse files Browse the repository at this point in the history
Remove error and don't exit if veh has no hit points
  • Loading branch information
thojkooi committed Dec 1, 2015
2 parents dacfe4d + 419af19 commit 80463af
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions addons/repair/functions/fnc_addRepairActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

Expand Down

0 comments on commit 80463af

Please sign in to comment.