mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-17 01:10:10 +00:00
Fix thrown weapon sources being used to apply on strike enchantments (Fixes #3634)
This commit is contained in:
parent
b6d02d9b14
commit
46a3244107
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user