summaryrefslogtreecommitdiff
path: root/gfx/followCameraController.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-06 18:53:22 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-06 18:53:22 +0000
commitacd16970bc93712e7c8c3996816242a04999818b (patch)
tree24dbc35c1fde12a3d429539bf24605b738f4bef9 /gfx/followCameraController.cpp
parentGive collection a virtual desctructor (diff)
downloadilt-acd16970bc93712e7c8c3996816242a04999818b.tar.bz2
ilt-acd16970bc93712e7c8c3996816242a04999818b.tar.xz
ilt-acd16970bc93712e7c8c3996816242a04999818b.zip
Introduce the Train concept as a literal collection of rail vehicles
Diffstat (limited to 'gfx/followCameraController.cpp')
-rw-r--r--gfx/followCameraController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/followCameraController.cpp b/gfx/followCameraController.cpp
index e8a95b3..9e32e21 100644
--- a/gfx/followCameraController.cpp
+++ b/gfx/followCameraController.cpp
@@ -15,7 +15,7 @@ FollowCameraController::updateCamera(Camera * camera) const
{
const auto [pos, rot] = [this]() {
const auto t {target.lock()};
- return std::tie(t->location.pos, t->location.rot);
+ return std::tie(t->getLocation().pos, t->getLocation().rot);
}();
switch (mode) {