From e092de711e559dedb582c32d1bb248aaca6e4315 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 26 Dec 2024 21:00:29 +1100 Subject: [PATCH] fix compile error --- source/game/StarHumanoid.cpp | 2 +- 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 const Humanoid::StateNames{ }; // gross, but I don't want to make config calls more than I need to -bool& Humanoid::globalHeadRotation(Maybe default) { +bool& Humanoid::globalHeadRotation() { static Maybe 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 const StateNames; - static bool& globalHeadRotation(Maybe default = {}); + static bool& globalHeadRotation(); Humanoid(Json const& config); Humanoid(HumanoidIdentity const& identity);