1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 20:53:50 +00:00

Fix player not being allowed to use his own items

This commit is contained in:
scrawl 2014-05-15 04:52:35 +02:00
parent eb40032bde
commit b6a7aee42e

View file

@ -25,7 +25,7 @@ namespace
bool isAllowedToUse (const MWWorld::Ptr& ptr, const MWWorld::Ptr& item, MWWorld::Ptr& victim)
{
const std::string& owner = item.getCellRef().mOwner;
bool isOwned = !owner.empty();
bool isOwned = !owner.empty() && owner != "player";
const std::string& faction = item.getCellRef().mFaction;
bool isFactionOwned = false;