forked from mirror/openmw-tes3mp
Fix player not being allowed to use his own items
This commit is contained in:
parent
eb40032bde
commit
b6a7aee42e
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ namespace
|
||||||
bool isAllowedToUse (const MWWorld::Ptr& ptr, const MWWorld::Ptr& item, MWWorld::Ptr& victim)
|
bool isAllowedToUse (const MWWorld::Ptr& ptr, const MWWorld::Ptr& item, MWWorld::Ptr& victim)
|
||||||
{
|
{
|
||||||
const std::string& owner = item.getCellRef().mOwner;
|
const std::string& owner = item.getCellRef().mOwner;
|
||||||
bool isOwned = !owner.empty();
|
bool isOwned = !owner.empty() && owner != "player";
|
||||||
|
|
||||||
const std::string& faction = item.getCellRef().mFaction;
|
const std::string& faction = item.getCellRef().mFaction;
|
||||||
bool isFactionOwned = false;
|
bool isFactionOwned = false;
|
||||||
|
|
Loading…
Reference in a new issue