src/EditRecipeTab2.cpp

changeset 284
33bb98c33e6a
parent 283
242a68fa7186
child 301
fe6346211b5b
--- a/src/EditRecipeTab2.cpp	Mon Jun 13 16:47:52 2022 +0200
+++ b/src/EditRecipeTab2.cpp	Mon Jun 13 17:34:51 2022 +0200
@@ -310,9 +310,9 @@
     double svg = 0;
     if (recipe->yeasts.size() > 0) {
         for (i = 0; i < recipe->yeasts.size(); i++) {
-	    if (recipe->yeasts.at(i).y_use == 0) {		// Used in primary
-		if (recipe->yeasts.at(i).y_attenuation > svg)
-		    svg = recipe->yeasts.at(i).y_attenuation;	// Take the highest if multiple yeasts.
+	    if (recipe->yeasts.at(i).use == 0) {		// Used in primary
+		if (recipe->yeasts.at(i).attenuation > svg)
+		    svg = recipe->yeasts.at(i).attenuation;	// Take the highest if multiple yeasts.
 	    }
 	    // TODO: brett or others in secondary.
 	}

mercurial