diff --git a/level.cc b/level.cc index 9f03ea4..46bff21 100644 --- a/level.cc +++ b/level.cc @@ -68,8 +68,8 @@ std::vector Level::getLights() { return lights; } -Camera Level::getCamera() { - return camera; +Camera* Level::getCamera() { + return &camera; } Object* Level::getCameraCenter() { diff --git a/level.hh b/level.hh index 9af2592..8784be2 100644 --- a/level.hh +++ b/level.hh @@ -20,7 +20,7 @@ class Level { glm::vec3 getAmbientLight(); std::vector getLights(); Object* getCameraCenter(); - Camera getCamera(); + Camera* getCamera(); private: std::string filePath; std::vector objects;