mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 17:11:33 +00:00
Make sure non-carriable light sources can't be picked up
This commit is contained in:
parent
02b8dffdd0
commit
dab09180ae
1 changed files with 2 additions and 1 deletions
|
@ -732,7 +732,8 @@ namespace MWGui
|
||||||
&& (type != typeid(ESM::Potion).name()))
|
&& (type != typeid(ESM::Potion).name()))
|
||||||
return;
|
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;
|
return;
|
||||||
|
|
||||||
int count = object.getRefData().getCount();
|
int count = object.getRefData().getCount();
|
||||||
|
|
Loading…
Reference in a new issue