Merge pull request #1467 from akortunov/guifixes

Restack soulgems when use SoulTrap
This commit is contained in:
scrawl 2017-09-20 14:15:49 +00:00 committed by GitHub
commit 5ebb43a422

View file

@ -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())