mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-18 14:42:27 +00:00
Merge pull request #1467 from akortunov/guifixes
Restack soulgems when use SoulTrap
This commit is contained in:
commit
5ebb43a422
@ -209,6 +209,9 @@ namespace MWMechanics
|
|||||||
gem->getContainerStore()->unstack(*gem, caster);
|
gem->getContainerStore()->unstack(*gem, caster);
|
||||||
gem->getCellRef().setSoul(mCreature.getCellRef().getRefId());
|
gem->getCellRef().setSoul(mCreature.getCellRef().getRefId());
|
||||||
|
|
||||||
|
// Restack the gem with other gems with the same soul
|
||||||
|
gem->getContainerStore()->restack(*gem);
|
||||||
|
|
||||||
mTrapped = true;
|
mTrapped = true;
|
||||||
|
|
||||||
if (caster == getPlayer())
|
if (caster == getPlayer())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user