diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-11 03:01:43 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-11 03:01:43 -0500 |
| commit | 3172370912301817d224ee33d93ca0a82dbea347 (patch) | |
| tree | 4efd531fa76fc070a1e72e0945799f2d01c7e43f | |
| parent | 2e22caf794968d22d7121a2de28e68d3e07357f2 (diff) | |
When checking if a Species egg stuff is valid, make sure it's not sterile (part of an egg group)
| -rw-r--r-- | sigmod/Species.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sigmod/Species.cpp b/sigmod/Species.cpp index 96374de8..f2835b9f 100644 --- a/sigmod/Species.cpp +++ b/sigmod/Species.cpp @@ -135,7 +135,7 @@ void Sigmod::Species::validate() if ((m_encyclopediaNumber != -1) && m_encyclopediaEntry.isEmpty()) emit(error("Encyclopedia entry is empty")); TEST(genderFactor); - if (sigmod()->rules()->breedingAllowed()) + if (sigmod()->rules()->breedingAllowed() && m_eggGroup.size()) { const Species* eggSpecies = sigmod()->speciesById(m_eggSpecies); if (!eggSpecies) |
