diff --git a/apps/openmw/mwclass/esm4base.hpp b/apps/openmw/mwclass/esm4base.hpp index 5c05d81692..9c02af963d 100644 --- a/apps/openmw/mwclass/esm4base.hpp +++ b/apps/openmw/mwclass/esm4base.hpp @@ -138,17 +138,17 @@ namespace MWClass { } - bool hasToolTip(const MWWorld::ConstPtr& ptr) const override { return true; } - - MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr& ptr, int count) const override + std::string_view getName(const MWWorld::ConstPtr& ptr) const override { - return ESM4Impl::getToolTipInfo(ptr.get()->mBase->mFullName, count); + return ptr.get()->mBase->mFullName; } - std::string_view getName(const MWWorld::ConstPtr& ptr) const override + MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr& ptr, int count) const override { - return ptr.get()->mBase->mFullName; + return ESM4Impl::getToolTipInfo(getName(ptr), count); } + + bool hasToolTip(const MWWorld::ConstPtr& ptr) const override { return !getName(ptr).empty(); } }; }