From fd014351401340622fb2e40a28f6937cd4986ecf Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 2 Dec 2025 20:27:11 -0600 Subject: [PATCH] fix(ui): correct logic in CFramePoint ctor --- src/ui/CFramePoint.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ui/CFramePoint.cpp b/src/ui/CFramePoint.cpp index 0a30c46..d88e7ee 100644 --- a/src/ui/CFramePoint.cpp +++ b/src/ui/CFramePoint.cpp @@ -7,14 +7,9 @@ const float CFramePoint::UNDEFINED = 3.4028237e38; CFramePoint::CFramePoint(CLayoutFrame* relative, FRAMEPOINT framePoint, float offsetX, float offsetY) { STORM_ASSERT(relative != nullptr && framePoint != FRAMEPOINT_NUMPOINTS); - this->m_offset = { offsetX, offsetY }; - this->m_framePoint = framePoint; - this->m_relative = relative; + this->m_flags = 0x0; - // TODO - // - this doesn't appear to be zeroed out - // - what is it actually checking? - this->m_flags = (this->m_flags & 0x2) >= 1 ? 0x6 : 0; + this->SetRelative(relative, framePoint, offsetX, offsetY); } CLayoutFrame* CFramePoint::GetRelative() {