diff --git a/Runtime/GuiSys/CGuiFrame.cpp b/Runtime/GuiSys/CGuiFrame.cpp index 52209eefe..1b1dd1329 100644 --- a/Runtime/GuiSys/CGuiFrame.cpp +++ b/Runtime/GuiSys/CGuiFrame.cpp @@ -107,7 +107,7 @@ bool CGuiFrame::GetIsFinishedLoading() const { continue; return false; } - const_cast(this)->x58_24_loaded = true; + x58_24_loaded = true; return true; } diff --git a/Runtime/GuiSys/CGuiFrame.hpp b/Runtime/GuiSys/CGuiFrame.hpp index bae374734..a5c49d2b1 100644 --- a/Runtime/GuiSys/CGuiFrame.hpp +++ b/Runtime/GuiSys/CGuiFrame.hpp @@ -41,7 +41,7 @@ private: int x4c_a; int x50_b; int x54_c; - bool x58_24_loaded : 1; + mutable bool x58_24_loaded : 1; zeus::CTransform m_aspectTransform; float m_aspectConstraint = -1.f; diff --git a/Runtime/GuiSys/CGuiWidget.cpp b/Runtime/GuiSys/CGuiWidget.cpp index 25a6cc3ac..7b115e938 100644 --- a/Runtime/GuiSys/CGuiWidget.cpp +++ b/Runtime/GuiSys/CGuiWidget.cpp @@ -227,7 +227,7 @@ CGuiWidget* CGuiWidget::FindWidget(s16 id) { return nullptr; } -bool CGuiWidget::GetIsFinishedLoading() const { return GetIsFinishedLoadingWidgetSpecific(); } +bool CGuiWidget::GetIsFinishedLoading() { return GetIsFinishedLoadingWidgetSpecific(); } void CGuiWidget::DispatchInitialize() { Initialize(); diff --git a/Runtime/GuiSys/CGuiWidget.hpp b/Runtime/GuiSys/CGuiWidget.hpp index bab7ebfc7..f1e2c0f6b 100644 --- a/Runtime/GuiSys/CGuiWidget.hpp +++ b/Runtime/GuiSys/CGuiWidget.hpp @@ -135,7 +135,7 @@ public: void SetColor(const zeus::CColor& color); void InitializeRGBAFactor(); CGuiWidget* FindWidget(s16 id); - bool GetIsFinishedLoading() const; + bool GetIsFinishedLoading(); void DispatchInitialize(); void SetDepthGreater(bool v) { xb6_30_depthGreater = v; } void SetDepthTest(bool v) { xb6_31_depthTest = v; }