Skip to content

Commit 422739a

Browse files
committed
Fix things ZLinq broke
1 parent 761f7c3 commit 422739a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cube/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ private void UpdateBoxesXZ()
909909

910910
private void UpdateParticleScores()
911911
{
912-
float ScoreMin = MathHelper.Min(Particles.Select(p => p.Score));
913-
float ScoreMax = MathHelper.Max(Particles.Select(p => p.Score));
912+
float ScoreMin = Particles.Select(p => p.Score).Min();
913+
float ScoreMax = Particles.Select(p => p.Score).Max();
914914
float ScoreSpread = ScoreMax - ScoreMin;
915915

916916
SliderParticleScoreMin.MinValue = (decimal)ScoreMin;

M/Controls/Sociology/Dialogs/DialogCreateNewSpecies.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ await Task.Run(() =>
586586
ParticleHashes[hash]++;
587587
}
588588

589-
HashSet<string> AvailableHashes = new HashSet<string>(Helper.Combine(ValidSources.Select(s => s.Files.Keys.ToArray())));
589+
HashSet<string> AvailableHashes = new HashSet<string>(Helper.Combine(ValidSources.Select(s => s.Files.Keys.ToArray()).ToArray()));
590590
List<string> HashesNotFound = ParticleHashes.Keys.Where(hash => !AvailableHashes.Contains(hash)).ToList();
591591

592592
ParticlesUnmatched = HashesNotFound.Sum(h => ParticleHashes[h]);

M/Controls/Sociology/Dialogs/DialogDataSources.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ await Task.Run(() =>
591591

592592
#region Check for overlapping hashes
593593

594-
string[] Overlapping = Helper.Combine(Population.Sources.Select(s => s.Files.Where(f => NewSource.Files.ContainsKey(f.Key)).Select(f => f.Value).ToArray()));
594+
string[] Overlapping = Helper.Combine(Population.Sources.Select(s => s.Files.Where(f => NewSource.Files.ContainsKey(f.Key)).Select(f => f.Value).ToArray()).ToArray());
595595
if (Overlapping.Length > 0)
596596
{
597597
string Offenders = "";

M/Controls/Sociology/Dialogs/DialogSpeciesParticleSets.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ await Task.Run(() =>
173173
ParticleHashes[hash]++;
174174
}
175175

176-
HashSet<string> AvailableHashes = new HashSet<string>(Helper.Combine(ValidSources.Select(s => s.Files.Keys.ToArray())));
176+
HashSet<string> AvailableHashes = new HashSet<string>(Helper.Combine(ValidSources.Select(s => s.Files.Keys.ToArray()).ToArray()));
177177
List<string> HashesNotFound = ParticleHashes.Keys.Where(hash => !AvailableHashes.Contains(hash)).ToList();
178178

179179
ParticlesUnmatched = HashesNotFound.Sum(h => ParticleHashes[h]);

0 commit comments

Comments
 (0)