mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #4411
4411: Fix initialization of CUIEx::m_MouseSlow r=def- a=Robyt3 The `CUIEx` constructor with arguments is unused and only the default constructor was used but hidden away in the header file therefore missing the initialization. Closes #4408. ## Checklist - [X] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test if it works standalone, system.c especially - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: Robert Müller <robert.mueller@uni-siegen.de>
This commit is contained in:
commit
f9d676afcb
|
@ -13,10 +13,8 @@
|
|||
|
||||
#include <limits>
|
||||
|
||||
CUIEx::CUIEx(CUI *pUI, IKernel *pKernel, CRenderTools *pRenderTools, IInput::CEvent *pInputEventsArray, int *pInputEventCount)
|
||||
CUIEx::CUIEx()
|
||||
{
|
||||
Init(pUI, pKernel, pRenderTools, pInputEventsArray, pInputEventCount);
|
||||
|
||||
m_MouseSlow = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue