From 29402211db0d68b6130b4a7687532a4494152780 Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Mon, 6 Jan 2025 20:21:33 +0300 Subject: [PATCH] Register CUICellItem in the UI focus system (#943) --- src/xrGame/ui/UICellItem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xrGame/ui/UICellItem.cpp b/src/xrGame/ui/UICellItem.cpp index 9df84efd5e9..a0f100edd46 100644 --- a/src/xrGame/ui/UICellItem.cpp +++ b/src/xrGame/ui/UICellItem.cpp @@ -36,6 +36,8 @@ CUICellItem::CUICellItem() m_has_upgrade = false; init(); + + UI().Focus().RegisterFocusable(this); } CUICellItem::~CUICellItem() @@ -44,6 +46,8 @@ CUICellItem::~CUICellItem() delete_data(m_childs); delete_data(m_custom_draw); + + UI().Focus().UnregisterFocusable(this); } void CUICellItem::init()