diff --git a/apps/openmw/mwgui/inventorywindow.cpp b/apps/openmw/mwgui/inventorywindow.cpp index 6041838f5..d11ee4f0c 100644 --- a/apps/openmw/mwgui/inventorywindow.cpp +++ b/apps/openmw/mwgui/inventorywindow.cpp @@ -732,7 +732,8 @@ namespace MWGui && (type != typeid(ESM::Potion).name())) return; - if (object.getClass().getName(object) == "") // objects without name presented to user can never be picked up + // An object that can be picked up must have a tooltip. + if (!object.getClass().hasToolTip(object)) return; int count = object.getRefData().getCount();