mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Don't memset SEvent directly (#15359)
Fixes a compiler warning by manually zeroing the tag and the largest union member instead
This commit is contained in:
parent
8b85a62310
commit
5c5538685e
3 changed files with 7 additions and 8 deletions
|
@ -1107,7 +1107,6 @@ void GUITable::sendTableEvent(s32 column, bool doubleclick)
|
|||
m_sel_doubleclick = doubleclick;
|
||||
if (Parent) {
|
||||
SEvent e;
|
||||
memset(&e, 0, sizeof e);
|
||||
e.EventType = EET_GUI_EVENT;
|
||||
e.GUIEvent.Caller = this;
|
||||
e.GUIEvent.Element = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue