mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Fix gold count calculation in pickupObject (bug #4604)
This commit is contained in:
parent
a7242d9e7a
commit
3f76f1d3ed
@ -99,6 +99,7 @@
|
||||
Bug #4576: Reset of idle animations when attack can not be started
|
||||
Bug #4591: Attack strength should be 0 if player did not hold the attack button
|
||||
Bug #4597: <> operator causes a compile error
|
||||
Bug #4604: Picking up gold from the ground only makes 1 grabbed
|
||||
Feature #1645: Casting effects from objects
|
||||
Feature #2606: Editor: Implemented (optional) case sensitive global search
|
||||
Feature #3083: Play animation when NPC is casting spell via script
|
||||
|
@ -681,6 +681,8 @@ namespace MWGui
|
||||
return;
|
||||
|
||||
int count = object.getRefData().getCount();
|
||||
if (object.getClass().isGold(object))
|
||||
count *= object.getClass().getValue(object);
|
||||
|
||||
MWWorld::Ptr player = MWMechanics::getPlayer();
|
||||
MWBase::Environment::get().getWorld()->breakInvisibility(player);
|
||||
|
Loading…
x
Reference in New Issue
Block a user