1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Make sure non-carriable light sources can't be picked up

This commit is contained in:
Capostrophic 2020-04-20 22:09:09 +03:00
parent 02b8dffdd0
commit dab09180ae

View File

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