X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fai%2FSpawner.cpp;fp=src%2Fai%2FSpawner.cpp;h=fabc6dd6a4377999751098b4719a4b12eb2a2fe2;hb=4c34ddd7eeaa3cb71fc90bf76a0cd395682add66;hp=6404e443999dc2cf54bbee6e6f9be739b2e0e079;hpb=f0a20986c573c4df1eb1212333489252c4b30efa;p=blank.git diff --git a/src/ai/Spawner.cpp b/src/ai/Spawner.cpp index 6404e44..fabc6dd 100644 --- a/src/ai/Spawner.cpp +++ b/src/ai/Spawner.cpp @@ -127,7 +127,7 @@ void Spawner::Spawn(Entity &reference, const glm::ivec3 &chunk, const glm::vec3 e.Bounds({ { -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f } }); e.WorldCollidable(true); RandomModel().Instantiate(e.GetModel()); - e.SetController(new AIController(random)); + e.SetController(new AIController(world, random)); e.Name("spawned"); e.Ref(); entities.emplace_back(&e);