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:
parent
baf7ef2525
commit
8867e76fd7
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user