From 083c29f1910a496fa5a7014c35b9c11838a75585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Mon, 29 Nov 2021 15:43:16 +0100 Subject: [PATCH] fix initialization of CUIEx::m_MouseSlow --- src/game/client/ui_ex.cpp | 4 +--- src/game/client/ui_ex.h | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/game/client/ui_ex.cpp b/src/game/client/ui_ex.cpp index bd131f084..423bde95e 100644 --- a/src/game/client/ui_ex.cpp +++ b/src/game/client/ui_ex.cpp @@ -13,10 +13,8 @@ #include -CUIEx::CUIEx(CUI *pUI, IKernel *pKernel, CRenderTools *pRenderTools, IInput::CEvent *pInputEventsArray, int *pInputEventCount) +CUIEx::CUIEx() { - Init(pUI, pKernel, pRenderTools, pInputEventsArray, pInputEventCount); - m_MouseSlow = false; } diff --git a/src/game/client/ui_ex.h b/src/game/client/ui_ex.h index c9ffeefc8..1a0ace56d 100644 --- a/src/game/client/ui_ex.h +++ b/src/game/client/ui_ex.h @@ -48,8 +48,7 @@ protected: CRenderTools *RenderTools() const { return m_pRenderTools; } public: - CUIEx(CUI *pUI, IKernel *pKernel, CRenderTools *pRenderTools, IInput::CEvent *pInputEventsArray, int *pInputEventCount); - CUIEx() {} + CUIEx(); void Init(CUI *pUI, IKernel *pKernel, CRenderTools *pRenderTools, IInput::CEvent *pInputEventsArray, int *pInputEventCount);