diff --git a/Profile/Profile.cpp b/Profile/Profile.cpp index 86daecc..4a7f183 100644 --- a/Profile/Profile.cpp +++ b/Profile/Profile.cpp @@ -141,7 +141,7 @@ auto Profile::getCredits() -> std::int32_t { return _credits; } -auto Profile::storyProgress() -> std::int32_t { +auto Profile::storyProgress() const -> std::int32_t { return _storyProgress; } @@ -161,7 +161,7 @@ auto Profile::getStoryProgress() -> std::int32_t { return _storyProgress; } -auto Profile::lastMissionId() -> std::int32_t { +auto Profile::lastMissionId() const -> std::int32_t { return _lastMissionId; } diff --git a/Profile/Profile.h b/Profile/Profile.h index 33611c6..9da11f5 100644 --- a/Profile/Profile.h +++ b/Profile/Profile.h @@ -32,10 +32,10 @@ class Profile { auto credits() const -> std::int32_t; auto getCredits() -> std::int32_t; - auto storyProgress() -> std::int32_t; + auto storyProgress() const -> std::int32_t; auto getStoryProgress() -> std::int32_t; - auto lastMissionId() -> std::int32_t; + auto lastMissionId() const -> std::int32_t; auto getLastMissionId() -> std::int32_t; auto backup(const std::string& filename) -> bool;