forked from Mirrorlandia_minetest/minetest
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