mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
add comment
This commit is contained in:
parent
647cc86067
commit
0f3fb6dee1
1 changed files with 3 additions and 0 deletions
|
@ -205,6 +205,9 @@ bool GUIInventoryList::OnEvent(const SEvent &event)
|
||||||
|
|
||||||
bool ret = hovered->OnEvent(event);
|
bool ret = hovered->OnEvent(event);
|
||||||
|
|
||||||
|
// Set visible again *after* processing the event. Otherwise, hovered could
|
||||||
|
// be another GUIInventoryList, which will call this one again, resulting in
|
||||||
|
// an infinite loop.
|
||||||
IsVisible = was_visible;
|
IsVisible = was_visible;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue