"this->" inutile

This commit is contained in:
Mylloon 2022-04-13 17:05:51 +02:00
parent bc0bb59c25
commit c3cb320fe7
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -101,7 +101,7 @@ void Animal::procreation(void) noexcept {
static_cast<Espece *>(m_partenaire)->m_partenaire = nullptr; static_cast<Espece *>(m_partenaire)->m_partenaire = nullptr;
m_partenaire = nullptr; m_partenaire = nullptr;
std::vector<int> cases_possible_enfant = this->casesPossible(); std::vector<int> cases_possible_enfant = casesPossible();
std::uniform_int_distribution<int> aleatoire_enfant(0, cases_possible_enfant.size() - 1); std::uniform_int_distribution<int> aleatoire_enfant(0, cases_possible_enfant.size() - 1);
new Espece(m_univers_ID, cases_possible_enfant[static_cast<uint64_t>(aleatoire_enfant(graine))]); new Espece(m_univers_ID, cases_possible_enfant[static_cast<uint64_t>(aleatoire_enfant(graine))]);