forked from mirror/openmw-tes3mp
Merge pull request #1467 from akortunov/guifixes
Restack soulgems when use SoulTrap
This commit is contained in:
commit
5ebb43a422
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue