1
0
Fork 0
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:
Desour 2025-06-24 00:17:22 +02:00
parent 647cc86067
commit 0f3fb6dee1

View file

@ -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;