mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Make sure non-carriable light sources can't be picked up
This commit is contained in:
parent
7676f30298
commit
1624bc35d8
1 changed files with 2 additions and 1 deletions
|
@ -730,7 +730,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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue