diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-26 21:00:29 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-26 21:00:29 +1100 |
commit | e092de711e559dedb582c32d1bb248aaca6e4315 (patch) | |
tree | bdcdebdf29c9b4e6419629387aa40aceb29f4a7f | |
parent | 0a1a82b18b86362263c8fa9ce8919c6d3b36d85c (diff) |
fix compile error
-rw-r--r-- | source/game/StarHumanoid.cpp | 2 | ||||
-rw-r--r-- | source/game/StarHumanoid.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarHumanoid.cpp b/source/game/StarHumanoid.cpp index 8f39abe..97b90cd 100644 --- a/source/game/StarHumanoid.cpp +++ b/source/game/StarHumanoid.cpp @@ -243,7 +243,7 @@ EnumMap<Humanoid::State> const Humanoid::StateNames{ }; // gross, but I don't want to make config calls more than I need to -bool& Humanoid::globalHeadRotation(Maybe<bool> default) { +bool& Humanoid::globalHeadRotation() { static Maybe<bool> s_headRotation; if (!s_headRotation) s_headRotation = Root::singleton().configuration()->get("humanoidHeadRotation").optBool().value(true); diff --git a/source/game/StarHumanoid.hpp b/source/game/StarHumanoid.hpp index 6fd1cbe..98412f2 100644 --- a/source/game/StarHumanoid.hpp +++ b/source/game/StarHumanoid.hpp @@ -100,7 +100,7 @@ public: }; static EnumMap<State> const StateNames; - static bool& globalHeadRotation(Maybe<bool> default = {}); + static bool& globalHeadRotation(); Humanoid(Json const& config); Humanoid(HumanoidIdentity const& identity); |