From e9cb5222bedcb4b4b18f338a7c72ad1b585d1e87 Mon Sep 17 00:00:00 2001 From: lnd3 Date: Mon, 26 Aug 2024 06:18:29 +0200 Subject: [PATCH] Fix init order. --- packages/rendering/include/rendering/ui/UIContainer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/rendering/include/rendering/ui/UIContainer.h b/packages/rendering/include/rendering/ui/UIContainer.h index 86e5a646..63b85a97 100644 --- a/packages/rendering/include/rendering/ui/UIContainer.h +++ b/packages/rendering/include/rendering/ui/UIContainer.h @@ -281,8 +281,11 @@ namespace l::ui { class UIContainer { public: UIContainer(uint32_t flags = 0, UIRenderType renderType = UIRenderType::Rect, UIAlignH alignH = UIAlignH::Left, UIAlignV alignV = UIAlignV::Top, UILayoutH layoutH = UILayoutH::Fixed, UILayoutV layoutV = UILayoutV::Fixed) : + mId(0), mConfigFlags(flags), - mId(0) + mNotificationFlags(0), + mParent(nullptr), + mCoParent(nullptr) { mDisplayArea.mRender.mType = renderType; mDisplayArea.mMargin = 3.0f;