diff --git a/src/graphics/ui/GUI.cpp b/src/graphics/ui/GUI.cpp index 635768770..ac32af786 100644 --- a/src/graphics/ui/GUI.cpp +++ b/src/graphics/ui/GUI.cpp @@ -73,6 +73,9 @@ void GUI::updateTooltip(float delta) { if (tooltipTimer + delta >= hover->getTooltipDelay()) { auto label = std::dynamic_pointer_cast(get("tooltip.label")); const auto& text = hover->getTooltip(); + if (text.empty() && tooltip->isVisible()) { + return resetTooltip(); + } if (label && !text.empty()) { tooltip->setVisible(true); label->setText(langs::get(text));