"this->" inutile
This commit is contained in:
parent
bc0bb59c25
commit
c3cb320fe7
1 changed files with 1 additions and 1 deletions
|
@ -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))]);
|
||||||
|
|
Reference in a new issue