Changes in TBF.Utils.GetRegulVallvesPositions( ) and SequenceBase (see bug fix in 2.26.1636).

This commit is contained in:
Milan Hanajik
2021-04-28 11:00:28 +02:00
parent b98af02b55
commit 65b5164f0b
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -193,9 +193,8 @@ namespace TBF
/// </summary>
/// <param name="entity">TransitionStep entity</param>
/// <returns>float[] of regulation valve positions from 0 to 100.0f</returns>
public static float[] GetRegulValvesPositions(string regulValvesPct)
public static float[] GetRegulValvesPositions(string regulValvesPct, int regvCount)
{
int regvCount = Rig.Sequences.SequenceBase.RegulValves.Count;
float[] result = new float[regvCount];
string[] rvPosStr = (regulValvesPct != null) ? regulValvesPct.Split(new char[] { ';' }) : new string[0];