Merge pull request #1627

pull/393/head
scrawl 7 years ago
commit 27610a85ac
No known key found for this signature in database
GPG Key ID: 2E6CC3676024C402

@ -454,7 +454,13 @@ namespace MWScript
store.get<ESM::Creature>().find(creature); // This line throws an exception if it can't find the creature
MWWorld::Ptr item = *ptr.getClass().getContainerStore(ptr).add(gem, 1, ptr);
// Set the soul on just one of the gems, not the whole stack
item.getContainerStore()->unstack(item, ptr);
item.getCellRef().setSoul(creature);
// Restack the gem with other gems with the same soul
item.getContainerStore()->restack(item);
}
};

Loading…
Cancel
Save