Merge pull request #393 from OpenMW/master

Add OpenMW commits up to 10 March 2018
pull/394/head
David Cernat 7 years ago committed by GitHub
commit bf906b3f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -508,7 +508,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