From 3485299717ce6624537778a48d1442ef3dc2348d Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 15 Nov 2014 14:54:44 +0100 Subject: [PATCH] Changing getCamera to pointers. --- level.cc | 4 ++-- level.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/level.cc b/level.cc index b0bc41a..8832776 100644 --- a/level.cc +++ b/level.cc @@ -74,8 +74,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;