diff --git a/apps/openmw/mwbase/world.hpp b/apps/openmw/mwbase/world.hpp index 1194402b91..ce11152ed7 100644 --- a/apps/openmw/mwbase/world.hpp +++ b/apps/openmw/mwbase/world.hpp @@ -377,7 +377,7 @@ namespace MWBase virtual bool isFirstPerson() const = 0; virtual bool isPreviewModeEnabled() const = 0; virtual bool toggleVanityMode(bool enable) = 0; - virtual bool vanityRotateCamera(float* rot) = 0; + virtual bool vanityRotateCamera(const float* rot) = 0; virtual void applyDeferredPreviewRotationToPlayer(float dt) = 0; virtual void disableDeferredPreviewRotation() = 0; diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 4c090b2701..874ac5afd0 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -2299,7 +2299,7 @@ namespace MWWorld return mRendering->getCamera(); } - bool World::vanityRotateCamera(float* rot) + bool World::vanityRotateCamera(const float* rot) { auto* camera = mRendering->getCamera(); if (!camera->isVanityOrPreviewModeEnabled()) diff --git a/apps/openmw/mwworld/worldimp.hpp b/apps/openmw/mwworld/worldimp.hpp index 30d3102cc2..4fe971d4bc 100644 --- a/apps/openmw/mwworld/worldimp.hpp +++ b/apps/openmw/mwworld/worldimp.hpp @@ -468,7 +468,7 @@ namespace MWWorld bool toggleVanityMode(bool enable) override; MWRender::Camera* getCamera() override; - bool vanityRotateCamera(float* rot) override; + bool vanityRotateCamera(const float* rot) override; void applyDeferredPreviewRotationToPlayer(float dt) override; void disableDeferredPreviewRotation() override;