Skip to content

Commit

Permalink
Merge pull request #5 from fparma/onVictimVehicleHit-error-fix
Browse files Browse the repository at this point in the history
Fix runtime error in onVictimVehicleHit
  • Loading branch information
diwako authored May 11, 2020
2 parents a1a2d76 + ed17fe1 commit 65ceb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/zombies/functions/fnc_onVictimVehicleHit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (!(_getAllHp isEqualTo [])) then {
} forEach _allHitPoints;

private _idx = if (count _prefer > 0 && {count _rest > 0}) then {
[_prefer, 0.65, _rest, 0.35] call BIS_fnc_selectRandomWeighted;
selectRandom ([_prefer, 0.65, _rest, 0.35] call BIS_fnc_selectRandomWeighted);
} else {
selectRandom (_prefer + _rest);
};
Expand Down

0 comments on commit 65ceb77

Please sign in to comment.