1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-17 01:10:10 +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;
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());