mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 14:53:45 +01:00
Fix segfault when dragging mouse out of mainmenu window (#1910)
This commit is contained in:
parent
581efea60e
commit
c4624639e6
@ -2772,7 +2772,8 @@ bool GUIFormSpecMenu::preprocessEvent(const SEvent& event)
|
||||
gui::IGUIElement *hovered =
|
||||
Environment->getRootGUIElement()->getElementFromPoint(
|
||||
core::position2d<s32>(x, y));
|
||||
if (hovered->getType() == gui::EGUIET_TAB_CONTROL) {
|
||||
if (hovered && isMyChild(hovered) &&
|
||||
hovered->getType() == gui::EGUIET_TAB_CONTROL) {
|
||||
gui::IGUISkin* skin = Environment->getSkin();
|
||||
assert(skin != NULL);
|
||||
gui::IGUIFont *old_font = skin->getFont();
|
||||
|
Loading…
Reference in New Issue
Block a user