2
0

Improvements to algorithm and counter steppers.

This commit is contained in:
Maarten Billemont
2020-05-16 15:40:59 -04:00
parent eb8d10ed05
commit 1dccdd0a3c
2 changed files with 4 additions and 3 deletions

View File

@@ -179,7 +179,8 @@
if (algorithmVersion == self.algorithm.version)
return;
[self willChangeValueForKey:@"outdated"];
self.algorithm = MPAlgorithmForVersion( algorithmVersion )?: self.algorithm;
self.algorithm =
MPAlgorithmForVersion( MIN( MPAlgorithmVersionLast, MAX( MPAlgorithmVersionFirst, algorithmVersion ) ) )?: self.algorithm;
[self didChangeValueForKey:@"outdated"];
if (self.entityOID)