diff --git a/addons/arsenal/functions/fnc_sortStatement_rateOfFire.sqf b/addons/arsenal/functions/fnc_sortStatement_rateOfFire.sqf index 2c1d3a90f2a..3afbb52bdf3 100644 --- a/addons/arsenal/functions/fnc_sortStatement_rateOfFire.sqf +++ b/addons/arsenal/functions/fnc_sortStatement_rateOfFire.sqf @@ -22,5 +22,7 @@ private _fireRate = []; } foreach _fireModes; _fireRate sort true; +_fireRate = _fireRate param [0, 0]; -round (60 / (_fireRate param [0, 0])) +if (_fireRate == 0) exitWith {0}; +round (60 / _fireRate)