Envoie de l'ID de l'univers lors de la création des moutons et loups

This commit is contained in:
Mylloon 2022-04-04 00:15:57 +02:00
parent 654d1a4bec
commit ff162491a5
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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--;
}