mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed issue with selecting the wrong value, when perfect barrel length match occured.
This commit is contained in:
parent
1c14897194
commit
20b45e10a4
@ -35,7 +35,7 @@ if (_muzzleVelocityTableCount == 1) exitWith { (_muzzleVelocityTable select 0) -
|
||||
|
||||
// If we have the precise barrel length value, return result immediately
|
||||
if (_barrelLength in _barrelLengthTable) exitWith {
|
||||
_muzzleVelocityTable select (_barrelLengthTable find _barrelLength) - _muzzleVelocity
|
||||
(_muzzleVelocityTable select (_barrelLengthTable find _barrelLength)) - _muzzleVelocity
|
||||
};
|
||||
|
||||
// Limit values to lower and upper bound of data we have available
|
||||
|
Loading…
Reference in New Issue
Block a user