1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 01:15:33 +00:00

Merge pull request #1139 from MiroslavR/thrown-ench

Fix thrown weapon sources being used to apply on strike enchantments
This commit is contained in:
scrawl 2016-11-22 20:26:14 +01:00 committed by GitHub
commit 42b1163504

View file

@ -369,7 +369,7 @@ namespace MWWorld
// Try to get a Ptr to the bow that was used. It might no longer exist.
MWWorld::Ptr bow = projectileRef.getPtr();
if (!caster.isEmpty())
if (!caster.isEmpty() && it->mIdArrow != it->mBowId)
{
MWWorld::InventoryStore& inv = caster.getClass().getInventoryStore(caster);
MWWorld::ContainerStoreIterator invIt = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);