Remove obsolete comment

This commit is contained in:
Gunter Labes 2021-04-28 19:51:40 +02:00 committed by GitHub
parent 8e315683ae
commit b74f2e1471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,11 +204,6 @@ static unit_race::GENDER generate_gender(const unit_type& type, bool random_gend
return genders.front();
} else {
return genders[randomness::generator->get_random_int(0,genders.size()-1)];
// Note: genders is guaranteed to be non-empty, so this is not a
// potential division by zero.
// Note: Whoever wrote this code, you should have used an assertion, to save others hours of work...
// If the assertion size>0 is failing for you, one possible cause is that you are constructing a unit
// from a unit type which has not been ``built'' using the unit_type_data methods.
}
}