I'm getting the control cannot fall through to another case error and I'm not seeing how to fix it. What am I missing?
Code:public void agouti_color_steel() { switch (offspring[4]) { case 1: if ((charlie == true) & (dilute == false)) { color = "Charlie Steel Chestnut"; gtype = "EnEnA-B-C-D-E/s-VV"; colorname(); } else if ((broken == true) & (dilute == false)) { color = "Broken Steel Chestnut"; gtype = "EnenA-B-C-D-E/s-VV"; colorname(); } else if (dilute == false) { color = "Steel Chestnut"; gtype = "enenA-B-C-D-E/s-VV"; colorname(); } switch (offspring[8]) { case 1: break; case 2: if (charlie == true) { color = "Charlie Steel Opal"; gtype = "EnEnA-B-C-ddE/s-VV"; colorname(); } else if (broken == true) { color = "Broken Steel Opal"; gtype = "EnenA-B-C-ddE/s-VV"; colorname(); } else { color = "Steel Opal"; gtype = "enenA-B-C-ddE/s-VV"; colorname(); } break; } case 2: if ((charlie == true) & (dilute == false)) { color = "charlie Steel Choc. Agouti"; gtype = "EnEnA-bbC-D-E/s-VV"; colorname(); } else if ((broken == true) & (dilute == false)) { color = "Broken steel Choc. Agout"; gtype = "EnenA-bbC-D-E/s-VV"; colorname(); } else if (dilute == false) { color = "steel Choc. Agouti"; gtype = "enenA-bbC-D-e/s-VV"; colorname(); } switch (offspring[8]) { case 1: break; case 2: if (charlie == true) { color = "Charlie Steel Lynx"; gtype = "EnEnA-bbC-ddE/s-VV"; colorname(); } else if (broken == true) { color = "Broken Steel Lynx"; gtype = "EnenA-bbC-ddE/s-VV"; colorname(); } else if (dilute == true) { color = "Steel Lynx"; gtype = "enenA-bbC-ddE/s-VV"; colorname(); } break; } } return; }



LinkBack URL
About LinkBacks


