1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 02:15:32 +00:00

Restack soulgems when use SoulTrap

This commit is contained in:
Andrei Kortunov 2017-09-20 10:44:24 +04:00
parent 2806a35a61
commit 9342a0254f

View file

@ -209,6 +209,9 @@ namespace MWMechanics
gem->getContainerStore()->unstack(*gem, caster);
gem->getCellRef().setSoul(mCreature.getCellRef().getRefId());
// Restack the gem with other gems with the same soul
gem->getContainerStore()->restack(*gem);
mTrapped = true;
if (caster == getPlayer())