forked from teamnwah/openmw-tes3coop
Don't allow selling gold (again - when did this get broken?)
This commit is contained in:
parent
4aa9f3bcef
commit
07408a4652
1 changed files with 2 additions and 1 deletions
|
@ -241,7 +241,8 @@ namespace MWClass
|
||||||
MWWorld::LiveCellRef<ESM::Miscellaneous> *ref =
|
MWWorld::LiveCellRef<ESM::Miscellaneous> *ref =
|
||||||
item.get<ESM::Miscellaneous>();
|
item.get<ESM::Miscellaneous>();
|
||||||
|
|
||||||
return !ref->mBase->mData.mIsKey && (npcServices & ESM::NPC::Misc);
|
return !ref->mBase->mData.mIsKey && (npcServices & ESM::NPC::Misc)
|
||||||
|
&& !Misc::StringUtils::ciEqual(item.getCellRef().mRefID, "gold_001");
|
||||||
}
|
}
|
||||||
|
|
||||||
float Miscellaneous::getWeight(const MWWorld::Ptr &ptr) const
|
float Miscellaneous::getWeight(const MWWorld::Ptr &ptr) const
|
||||||
|
|
Loading…
Reference in a new issue