From 07408a4652f56ff777f7aee3aec6e2b8058e6cc2 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 23 Nov 2013 22:52:20 +0100 Subject: [PATCH] Don't allow selling gold (again - when did this get broken?) --- apps/openmw/mwclass/misc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwclass/misc.cpp b/apps/openmw/mwclass/misc.cpp index 67f79c40ba..1a40c45554 100644 --- a/apps/openmw/mwclass/misc.cpp +++ b/apps/openmw/mwclass/misc.cpp @@ -241,7 +241,8 @@ namespace MWClass MWWorld::LiveCellRef *ref = item.get(); - 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