feat(ui): add missing assert to CFramePoint ctor

This commit is contained in:
fallenoak 2025-12-02 16:34:13 -06:00
parent 0fcf129d02
commit beb9895092
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -1,9 +1,12 @@
#include "ui/CFramePoint.hpp"
#include "ui/CLayoutFrame.hpp"
#include <storm/Error.hpp>
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;