diff --git a/src/gui/guiInventoryList.cpp b/src/gui/guiInventoryList.cpp index b8ed324c3..5a96a4818 100644 --- a/src/gui/guiInventoryList.cpp +++ b/src/gui/guiInventoryList.cpp @@ -203,10 +203,10 @@ bool GUIInventoryList::OnEvent(const SEvent &event) if (!hovered || hovered->getID() == -1) hovered = m_fs_menu; - bool ret = hovered->OnEvent(event); - IsVisible = was_visible; + bool ret = hovered->OnEvent(event); + return ret; }