diff --git a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp index d2135bc..57f260a 100644 --- a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp +++ b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp @@ -8,6 +8,8 @@ #include #include +#include "MobsCorpACorpIA.h" + using namespace godot; GestionJeu::GestionJeu() @@ -57,9 +59,10 @@ void GestionJeu::create_scene() add_child(gPlayer); add_child(gTerrain); gMobs->AjoutMobC2C(10, 20, 5, 0, 1, 25); - for (MobsIA m : gMobs->mobs) + for (MobsIA* m : gMobs->mobs) { - add_child(&m); + Godot::print("Add child mob"); + add_child(m); } }