From 6460a37bb8d66e3e5d3f9af23071088517415e56 Mon Sep 17 00:00:00 2001 From: cadaei Date: Thu, 19 Jan 2017 22:16:10 +0100 Subject: [PATCH] fix for crash in breedingPlanner --- ARKBreedingStats/BreedingPlan.cs | 2 +- ARKBreedingStats/Properties/AssemblyInfo.cs | 2 +- ARKBreedingStats/ver.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ARKBreedingStats/BreedingPlan.cs b/ARKBreedingStats/BreedingPlan.cs index dba9fb23..11489c5d 100644 --- a/ARKBreedingStats/BreedingPlan.cs +++ b/ARKBreedingStats/BreedingPlan.cs @@ -71,7 +71,7 @@ public void drawBestParents(BreedingMode breedingMode, bool updateBreedingData = Sex chosenCS = (considerChosenCreature ? chosenCreature.gender : Sex.Unknown); labelTitle.Text = currentSpecies + (considerChosenCreature ? " (only pairings with \"" + chosenCreature.name + "\")" : ""); - if (considerChosenCreature && chosenCreature.neutered || chosenCreature.status != CreatureStatus.Available) + if (considerChosenCreature && (chosenCreature.neutered || chosenCreature.status != CreatureStatus.Available)) labelTitle.Text += "! Breeding not possible ! (" + (chosenCreature.neutered ? "neutered" : "not available") + ")"; if (females != null && males != null && females.Count > 0 && males.Count > 0) { diff --git a/ARKBreedingStats/Properties/AssemblyInfo.cs b/ARKBreedingStats/Properties/AssemblyInfo.cs index eb2fbaa6..e1427e92 100644 --- a/ARKBreedingStats/Properties/AssemblyInfo.cs +++ b/ARKBreedingStats/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("0.20.9.3")] +[assembly: AssemblyFileVersion("0.20.9.4")] diff --git a/ARKBreedingStats/ver.txt b/ARKBreedingStats/ver.txt index 4c2be3d9..dc272eea 100644 --- a/ARKBreedingStats/ver.txt +++ b/ARKBreedingStats/ver.txt @@ -1 +1 @@ -2530000,0.20.9.3 \ No newline at end of file +2530000,0.20.9.4 \ No newline at end of file