mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 04:01:31 +00:00
Fix null pointer crash
This commit is contained in:
parent
0b54e7e91d
commit
989123b5f8
1 changed files with 3 additions and 1 deletions
|
@ -563,8 +563,10 @@ void Widget::OnWindowMouseMove(const Point& pos)
|
|||
do
|
||||
{
|
||||
widget->OnMouseMove(widget->MapFrom(this, pos));
|
||||
if (widget == this)
|
||||
break;
|
||||
widget = widget->Parent();
|
||||
} while (widget != this);
|
||||
} while (widget);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue