Envoie de l'ID de l'univers lors de la création des moutons et loups
This commit is contained in:
parent
654d1a4bec
commit
ff162491a5
1 changed files with 2 additions and 2 deletions
|
@ -8,11 +8,11 @@ void lancerSimulation(Univers ** univers, int m, int n, int nb_moutons, int nb_l
|
|||
std::vector<Animal*> animaux;
|
||||
|
||||
while(nb_moutons > 0) {
|
||||
animaux.push_back(new Mouton());
|
||||
animaux.push_back(new Mouton((*univers)->ID));
|
||||
nb_moutons--;
|
||||
}
|
||||
while(nb_loups > 0) {
|
||||
animaux.push_back(new Loup());
|
||||
animaux.push_back(new Loup((*univers)->ID));
|
||||
nb_loups--;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue