From d1a7dfee877c4c2749f3c43e7f86087ccab68011 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Mon, 8 Jan 2024 16:19:40 +0400 Subject: [PATCH] Add missing assertion --- components/lua_ui/element.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lua_ui/element.cpp b/components/lua_ui/element.cpp index baa3438982..84383f89e1 100644 --- a/components/lua_ui/element.cpp +++ b/components/lua_ui/element.cpp @@ -280,6 +280,7 @@ namespace LuaUi auto children = parent->children(); auto it = std::find(children.begin(), children.end(), mRoot); mRoot = createWidget(layout(), 0); + assert(it != children.end()); *it = mRoot; parent->setChildren(children); mRoot->updateCoord();