X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fai%2FSpawner.cpp;h=612c3ccdadec7000ee427ce1003385f2013e0769;hb=a34fbcb0581056bd464158acfa30289a3e2c2c2d;hp=c73bcde9a9584c2cf2c9500d8fc427653d17be11;hpb=54deb92306a3de4fc1ee17fb7081a8b92f16ddda;p=blank.git diff --git a/src/ai/Spawner.cpp b/src/ai/Spawner.cpp index c73bcde..612c3cc 100644 --- a/src/ai/Spawner.cpp +++ b/src/ai/Spawner.cpp @@ -111,7 +111,7 @@ void Spawner::Spawn(const glm::ivec3 &chunk, const glm::vec3 &pos) { if (rand() % 2) { ctrl = new RandomWalk(e); } else { - ctrl = new Chaser(e, world.Player()); + ctrl = new Chaser(world, e, world.Player()); } controllers.emplace_back(ctrl); }