From 8867e76fd72606612d54f5f538bcc3fa49eb9e34 Mon Sep 17 00:00:00 2001 From: Mads Buvik Sandvei Date: Tue, 25 Jul 2023 13:38:14 +0200 Subject: [PATCH] pass full count of coins to createGold() in moveToCell() --- apps/openmw/mwclass/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwclass/misc.cpp b/apps/openmw/mwclass/misc.cpp index 443e3962fc..80841fe3a8 100644 --- a/apps/openmw/mwclass/misc.cpp +++ b/apps/openmw/mwclass/misc.cpp @@ -216,7 +216,7 @@ namespace MWClass MWWorld::Ptr newPtr; if (isGold(ptr)) { - newPtr = createGold(cell, getValue(ptr)); + newPtr = createGold(cell, getValue(ptr) * ptr.getRefData().getCount()); newPtr.getRefData() = ptr.getRefData(); newPtr.getCellRef().setRefNum(ptr.getCellRef().getRefNum()); newPtr.getCellRef().setGoldValue(ptr.getCellRef().getGoldValue());