Fix Osai Import

This commit is contained in:
Nicola
2021-02-02 14:52:22 +01:00
parent a6910bbd19
commit dcf8a9b751
+2 -2
View File
@@ -4318,7 +4318,7 @@ namespace CMS_CORE_Library.Osai
NominalLife = int.Parse(x[14]),
ReviveDelta = ushort.Parse(x[15]),
//Hack chiedere a Nicola se questa soluzione va bene
_PresettingDelta = ushort.Parse(x[16])
_PresettingDelta = (x.Length > 16) ? ushort.Parse(x[16]) : (ushort)0
}).ToList();
}
// Read families sizes (family file is splitted)
@@ -4353,7 +4353,7 @@ namespace CMS_CORE_Library.Osai
OffsetId1 = ushort.Parse(x[7]),
OffsetId2 = ushort.Parse(x[8]),
OffsetId3 = ushort.Parse(x[9]),
ResidualPresetting = ushort.Parse(x[10])
ResidualPresetting = (x.Length > 10) ? ushort.Parse(x[10]) : (ushort)0
}).ToList();
}