From beb9895092e0f3500eb4b9c01e97e6b4af35f255 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 2 Dec 2025 16:34:13 -0600 Subject: [PATCH] feat(ui): add missing assert to CFramePoint ctor --- src/ui/CFramePoint.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/CFramePoint.cpp b/src/ui/CFramePoint.cpp index 0557050..0a30c46 100644 --- a/src/ui/CFramePoint.cpp +++ b/src/ui/CFramePoint.cpp @@ -1,9 +1,12 @@ #include "ui/CFramePoint.hpp" #include "ui/CLayoutFrame.hpp" +#include 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;