1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00

pass full count of coins to createGold() in moveToCell()

This commit is contained in:
Mads Buvik Sandvei 2023-07-25 13:38:14 +02:00
parent baf7ef2525
commit 8867e76fd7

View File

@ -216,7 +216,7 @@ namespace MWClass
MWWorld::Ptr newPtr; MWWorld::Ptr newPtr;
if (isGold(ptr)) if (isGold(ptr))
{ {
newPtr = createGold(cell, getValue(ptr)); newPtr = createGold(cell, getValue(ptr) * ptr.getRefData().getCount());
newPtr.getRefData() = ptr.getRefData(); newPtr.getRefData() = ptr.getRefData();
newPtr.getCellRef().setRefNum(ptr.getCellRef().getRefNum()); newPtr.getCellRef().setRefNum(ptr.getCellRef().getRefNum());
newPtr.getCellRef().setGoldValue(ptr.getCellRef().getGoldValue()); newPtr.getCellRef().setGoldValue(ptr.getCellRef().getGoldValue());